[PATCH] keyword: add empty_ok argument to kwrepo.commit

Christian Ebert blacktrash at gmx.net
Fri Feb 1 00:35:04 CST 2008


# HG changeset patch
# User Christian Ebert <blacktrash at gmx.net>
# Date 1201847555 -3600
# Node ID c2d553776230f78205baa4936a7b357e66e889a6
# Parent  31726c27e40e59cedfdf2143c5c4c265e0e346f6
keyword: add empty_ok argument to kwrepo.commit

diff --git a/hgext/keyword.py b/hgext/keyword.py
--- a/hgext/keyword.py
+++ b/hgext/keyword.py
@@ -456,7 +456,7 @@
 
         def commit(self, files=None, text='', user=None, date=None,
                    match=util.always, force=False, force_editor=False,
-                   p1=None, p2=None, extra={}):
+                   p1=None, p2=None, extra={}, empty_ok=False):
             wlock = lock = None
             _p1 = _p2 = None
             try:
@@ -484,7 +484,8 @@
                              self).commit(files=files, text=text, user=user,
                                           date=date, match=match, force=force,
                                           force_editor=force_editor,
-                                          p1=p1, p2=p2, extra=extra)
+                                          p1=p1, p2=p2, extra=extra,
+                                          empty_ok=empty_ok)
 
                 # restore commit hooks
                 for name, cmd in commithooks.iteritems():


More information about the Mercurial-devel mailing list