##// END OF EJS Templates
phases: detect when boundaries has been actually retracted...
Boris Feld -
r33457:61714c28 default
parent child Browse files
Show More
@@ -357,6 +357,7 b' class phasecache(object):'
357
357
358 repo = repo.unfiltered()
358 repo = repo.unfiltered()
359 currentroots = self.phaseroots[targetphase]
359 currentroots = self.phaseroots[targetphase]
360 finalroots = oldroots = set(currentroots)
360 newroots = [n for n in nodes
361 newroots = [n for n in nodes
361 if self.phase(repo, repo[n].rev()) < targetphase]
362 if self.phase(repo, repo[n].rev()) < targetphase]
362 if newroots:
363 if newroots:
@@ -376,8 +377,10 b' class phasecache(object):'
376 finalroots = set(n for n in currentroots if repo[n].rev() <
377 finalroots = set(n for n in currentroots if repo[n].rev() <
377 minnewroot)
378 minnewroot)
378 finalroots.update(ctx.node() for ctx in updatedroots)
379 finalroots.update(ctx.node() for ctx in updatedroots)
379
380 if finalroots != oldroots:
380 self._updateroots(targetphase, finalroots, tr)
381 self._updateroots(targetphase, finalroots, tr)
382 return True
383 return False
381
384
382 def filterunknown(self, repo):
385 def filterunknown(self, repo):
383 """remove unknown nodes from the phase boundary
386 """remove unknown nodes from the phase boundary
General Comments 0
You need to be logged in to leave comments. Login now