mercurial/localrepo.py
changeset 42240 39b63f9d7464
parent 42238 32338e27bb9d
child 42286 8988e640a8ac
--- a/mercurial/localrepo.py	Fri May 03 12:32:00 2019 -0700
+++ b/mercurial/localrepo.py	Fri May 03 08:37:10 2019 -0700
@@ -2538,12 +2538,12 @@
                         _('note: commit message saved in %s\n') % msgfn)
                 raise
 
-        def commithook(node=hex(ret), parent1=hookp1, parent2=hookp2):
+        def commithook():
             # hack for command that use a temporary commit (eg: histedit)
             # temporary commit got stripped before hook release
             if self.changelog.hasnode(ret):
-                self.hook("commit", node=node, parent1=parent1,
-                          parent2=parent2)
+                self.hook("commit", node=hex(ret), parent1=hookp1,
+                          parent2=hookp2)
         self._afterlock(commithook)
         return ret