diff -r 26ca426a04e1 -r 17528ccdaa15 hgkw/keyword.py --- a/hgkw/keyword.py Tue Feb 09 14:12:22 2010 -0600 +++ b/hgkw/keyword.py Wed Feb 17 21:57:52 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)