(stable) merge stable
authorChristian Ebert <blacktrash@gmx.net>
Wed, 17 Feb 2010 21:57:52 +0100
branchstable
changeset 686 17528ccdaa15
parent 683 26ca426a04e1 (current diff)
parent 685 6d26c4bafda3 (diff)
child 691 44d25db950b4
(stable) merge
--- 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)