equal
deleted
inserted
replaced
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 |