# HG changeset patch # User Pierre-Yves David # Date 2015-06-15 23:08:22 # Node ID 186321309d055a6a60942d90364e84320c679aeb # Parent 9e551f155810b5351150434dafadcf30f06d0285 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. diff --git a/mercurial/phases.py b/mercurial/phases.py --- a/mercurial/phases.py +++ b/mercurial/phases.py @@ -171,7 +171,7 @@ class phasecache(object): 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):