mercurial/localrepo.py
changeset 24992 7df090c9c9fe
parent 24956 48583a1e44f3
child 25017 4e857213d2d1
equal deleted inserted replaced
24991:4169a4f83548 24992:7df090c9c9fe
  1515             wlock.release()
  1515             wlock.release()
  1516 
  1516 
  1517         def commithook(node=hex(ret), parent1=hookp1, parent2=hookp2):
  1517         def commithook(node=hex(ret), parent1=hookp1, parent2=hookp2):
  1518             # hack for command that use a temporary commit (eg: histedit)
  1518             # hack for command that use a temporary commit (eg: histedit)
  1519             # temporary commit got stripped before hook release
  1519             # temporary commit got stripped before hook release
  1520             if node in self:
  1520             if self.changelog.hasnode(ret):
  1521                 self.hook("commit", node=node, parent1=parent1,
  1521                 self.hook("commit", node=node, parent1=parent1,
  1522                           parent2=parent2)
  1522                           parent2=parent2)
  1523         self._afterlock(commithook)
  1523         self._afterlock(commithook)
  1524         return ret
  1524         return ret
  1525 
  1525