# HG changeset patch # User Christian Ebert # Date 1201637757 -3600 # Node ID 7b165e66b81b524c3cfb273b929a08b9a518bf00 # Parent d0e8910bbb4b823d64cd4d1ddb87c7fd4ec42377 Add empty_ok argument to commit diff -r d0e8910bbb4b -r 7b165e66b81b hgkw/keyword.py --- a/hgkw/keyword.py Tue Jan 29 17:33:00 2008 +0100 +++ b/hgkw/keyword.py Tue Jan 29 21:15:57 2008 +0100 @@ -434,7 +434,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: @@ -462,7 +462,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():