Add empty_ok argument to kwrepo.commit stable
authorChristian Ebert <blacktrash@gmx.net>
Tue, 05 Feb 2008 18:36:23 +0100
branchstable
changeset 372 d5588b31bcad
parent 371 c093df5fd251
child 373 56573f49772c
Add empty_ok argument to kwrepo.commit
hgkw/keyword.py
--- a/hgkw/keyword.py	Tue Feb 05 18:33:55 2008 +0100
+++ b/hgkw/keyword.py	Tue Feb 05 18:36:23 2008 +0100
@@ -457,7 +457,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:
@@ -485,7 +485,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():