changeset 6022:e5b5010ff7da

keyword: add empty_ok argument to kwrepo.commit
author Christian Ebert <blacktrash@gmx.net>
date Mon, 04 Feb 2008 18:27:36 +0100
parents 717881b400b3
children ee7df90d1daa
files hgext/keyword.py
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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():