phase: invalidate the phase's set cache alongside the revs
authorPierre-Yves David <pierre-yves.david@fb.com>
Mon, 15 Jun 2015 15:57:47 -0700
changeset 25593 9e551f155810
parent 25592 dd2349ccfa66
child 25594 186321309d05
phase: invalidate the phase's set cache alongside the revs Invalidate was leaving set data around leading to possible bugs in revset.
mercurial/phases.py
--- a/mercurial/phases.py	Mon Jun 15 15:52:52 2015 -0700
+++ b/mercurial/phases.py	Mon Jun 15 15:57:47 2015 -0700
@@ -209,6 +209,7 @@
 
     def invalidate(self):
         self._phaserevs = None
+        self._phasesets = None
 
     def _populatephaseroots(self, repo):
         """Fills the _phaserevs cache with phases for the roots.