keyword: add empty_ok argument to kwrepo.commit
authorChristian Ebert <blacktrash@gmx.net>
Mon, 04 Feb 2008 18:27:36 +0100
changeset 6022 e5b5010ff7da
parent 6021 717881b400b3
child 6023 ee7df90d1daa
keyword: add empty_ok argument to kwrepo.commit
hgext/keyword.py
--- a/hgext/keyword.py	Mon Feb 04 18:27:36 2008 +0100
+++ b/hgext/keyword.py	Mon Feb 04 18:27:36 2008 +0100
@@ -455,7 +455,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:
@@ -483,7 +483,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():