mercurial/phases.py
changeset 18101 a464deecc9dd
parent 18002 9bc5873e52af
child 18105 312262ebc223
equal deleted inserted replaced
18100:3a6ddacb7198 18101:a464deecc9dd
   247                 delroots.extend(olds - roots)
   247                 delroots.extend(olds - roots)
   248             # declare deleted root in the target phase
   248             # declare deleted root in the target phase
   249             if targetphase != 0:
   249             if targetphase != 0:
   250                 self.retractboundary(repo, targetphase, delroots)
   250                 self.retractboundary(repo, targetphase, delroots)
   251         obsolete.clearobscaches(repo)
   251         obsolete.clearobscaches(repo)
       
   252         repo.filteredrevcache.clear()
   252 
   253 
   253     def retractboundary(self, repo, targetphase, nodes):
   254     def retractboundary(self, repo, targetphase, nodes):
   254         # Be careful to preserve shallow-copied values: do not update
   255         # Be careful to preserve shallow-copied values: do not update
   255         # phaseroots values, replace them.
   256         # phaseroots values, replace them.
   256 
   257 
   265             currentroots.update(newroots)
   266             currentroots.update(newroots)
   266             ctxs = repo.set('roots(%ln::)', currentroots)
   267             ctxs = repo.set('roots(%ln::)', currentroots)
   267             currentroots.intersection_update(ctx.node() for ctx in ctxs)
   268             currentroots.intersection_update(ctx.node() for ctx in ctxs)
   268             self._updateroots(targetphase, currentroots)
   269             self._updateroots(targetphase, currentroots)
   269         obsolete.clearobscaches(repo)
   270         obsolete.clearobscaches(repo)
       
   271         repo.filteredrevcache.clear()
   270 
   272 
   271 def advanceboundary(repo, targetphase, nodes):
   273 def advanceboundary(repo, targetphase, nodes):
   272     """Add nodes to a phase changing other nodes phases if necessary.
   274     """Add nodes to a phase changing other nodes phases if necessary.
   273 
   275 
   274     This function move boundary *forward* this means that all nodes
   276     This function move boundary *forward* this means that all nodes