phase: also overwrite phase's sets when replacing a phasecache
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 15 Jun 2015 16:08:22 -0700
changeset 25594 186321309d05
parent 25593 9e551f155810
child 25595 a7dd6692e5cb
phase: also overwrite phase's sets when replacing a phasecache We need to copy this new attributes around too. This fix an issue where phases data used by 'not public()' were not invalidated properly.
mercurial/phases.py
--- a/mercurial/phases.py	Mon Jun 15 15:57:47 2015 -0700
+++ b/mercurial/phases.py	Mon Jun 15 16:08:22 2015 -0700
@@ -171,7 +171,7 @@
         return ph
 
     def replace(self, phcache):
-        for a in 'phaseroots dirty opener _phaserevs'.split():
+        for a in 'phaseroots dirty opener _phaserevs _phasesets'.split():
             setattr(self, a, getattr(phcache, a))
 
     def _getphaserevsnative(self, repo):