equal
deleted
inserted
replaced
1436 if newheadnodes: |
1436 if newheadnodes: |
1437 ctxgen = (self[node] for node in newheadnodes |
1437 ctxgen = (self[node] for node in newheadnodes |
1438 if self.changelog.hasnode(node)) |
1438 if self.changelog.hasnode(node)) |
1439 cache = self._branchcache |
1439 cache = self._branchcache |
1440 branchmap.update(self, cache, ctxgen) |
1440 branchmap.update(self, cache, ctxgen) |
1441 cache.tipnode = self.changelog.tip() |
|
1442 cache.tiprev = self.changelog.rev(cache.tipnode) |
|
1443 cache.write(self) |
1441 cache.write(self) |
1444 |
1442 |
1445 # Ensure the persistent tag cache is updated. Doing it now |
1443 # Ensure the persistent tag cache is updated. Doing it now |
1446 # means that the tag cache only has to worry about destroyed |
1444 # means that the tag cache only has to worry about destroyed |
1447 # heads immediately after a strip/rollback. That in turn |
1445 # heads immediately after a strip/rollback. That in turn |