Do not postpone commit hooks
With 0e64d814d7d0 in place, this hack is not needed any more.
--- a/hgkw/keyword.py Wed Feb 17 11:15:18 2010 +0100
+++ b/hgkw/keyword.py Wed Feb 17 21:56:15 2010 +0100
@@ -489,24 +489,8 @@
try:
wlock = self.wlock()
lock = self.lock()
- # store and postpone commit hooks
- commithooks = {}
- for name, cmd in ui.configitems('hooks'):
- if name.split('.', 1)[0] == 'commit':
- commithooks[name] = cmd
- ui.setconfig('hooks', name, None)
- if commithooks:
- # store parents for commit hooks
- p1, p2 = ctx.p1(), ctx.p2()
- xp1, xp2 = p1.hex(), p2 and p2.hex() or ''
-
n = super(kwrepo, self).commitctx(ctx, error)
-
kwt.overwrite(n, True, None)
- if commithooks:
- for name, cmd in commithooks.iteritems():
- ui.setconfig('hooks', name, cmd)
- self.hook('commit', node=n, parent1=xp1, parent2=xp2)
return n
finally:
release(lock, wlock)