diff mercurial/localrepo.py @ 23205:2d54aa5397cd

changelog: rely on transaction for finalization Instead of calling 'cl.finalize()' by hand (possibly at a bogus time) we register it in the transaction during 'delayupdate' and rely on 'tr.close()' to call it at the right time.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Sat, 18 Oct 2014 01:09:41 -0700
parents 3872d563e01a
children 76effa770ff9
line wrap: on
line diff
--- a/mercurial/localrepo.py	Fri Oct 17 22:28:09 2014 -0700
+++ b/mercurial/localrepo.py	Sat Oct 18 01:09:41 2014 -0700
@@ -1445,7 +1445,6 @@
             xp1, xp2 = p1.hex(), p2 and p2.hex() or ''
             self.hook('pretxncommit', throw=True, node=hex(n), parent1=xp1,
                       parent2=xp2, pending=p)
-            self.changelog.finalize(trp)
             # set the new commit is proper phase
             targetphase = subrepo.newcommitphase(self.ui, ctx)
             if targetphase: