--- a/hgkw/keyword.py Tue Apr 28 09:42:44 2009 +0100
+++ b/hgkw/keyword.py Fri May 15 01:37:50 2009 +0200
@@ -452,8 +452,7 @@
return kwt.wread(filename, data)
def commit(self, files=None, text='', user=None, date=None,
- match=None, force=False, force_editor=False,
- p1=None, p2=None, extra={}, empty_ok=False):
+ match=None, force=False, editor=None, extra={}):
wlock = lock = None
_p1 = _p2 = None
try:
@@ -467,10 +466,7 @@
ui.setconfig('hooks', name, None)
if commithooks:
# store parents for commit hook environment
- if p1 is None:
- _p1, _p2 = repo.dirstate.parents()
- else:
- _p1, _p2 = p1, p2 or nullid
+ _p1, _p2 = repo.dirstate.parents()
_p1 = hex(_p1)
if _p2 == nullid:
_p2 = ''
@@ -478,8 +474,7 @@
_p2 = hex(_p2)
n = super(kwrepo, self).commit(files, text, user, date, match,
- force, force_editor, p1, p2,
- extra, empty_ok)
+ force, editor, extra)
# restore commit hooks
for name, cmd in commithooks.iteritems():