diff mercurial/localrepo.py @ 33451:e44d54260c32

phases: track phase movements in 'advanceboundary' Makes advanceboundary record the phase movement of affected revisions in tr.changes['phases']. The tracking is not usable yet because the 'retractboundary' function can also affect phases. We'll improve that in the coming changesets.
author Boris Feld <boris.feld@octobus.net>
date Tue, 11 Jul 2017 02:39:52 +0200
parents ec306bc6915b
children 3c20d7ef42e1
line wrap: on
line diff
--- a/mercurial/localrepo.py	Mon Jul 10 22:18:41 2017 +0200
+++ b/mercurial/localrepo.py	Tue Jul 11 02:39:52 2017 +0200
@@ -1216,6 +1216,7 @@
                                      checkambigfiles=_cachedfiles)
         tr.changes['revs'] = set()
         tr.changes['obsmarkers'] = set()
+        tr.changes['phases'] = {}
 
         tr.hookargs['txnid'] = txnid
         # note: writing the fncache only during finalize mean that the file is