--- a/mercurial/localrepo.py Sat Nov 01 22:59:37 2014 +0000
+++ b/mercurial/localrepo.py Sat Nov 01 23:17:50 2014 +0000
@@ -1370,7 +1370,11 @@
wlock.release()
def commithook(node=hex(ret), parent1=hookp1, parent2=hookp2):
- self.hook("commit", node=node, parent1=parent1, parent2=parent2)
+ # hack for command that use a temporary commit (eg: histedit)
+ # temporary commit got stripped before hook release
+ if node in self:
+ self.hook("commit", node=node, parent1=parent1,
+ parent2=parent2)
self._afterlock(commithook)
return ret