Comments
Patch
@@ -1487,7 +1487,10 @@
changes to stay in memory (waiting for the next unlock), or vanish
completely.
'''
- pass
+ # It simplifies the logic around updating the branchheads cache if we
+ # only have to consider the effect of the stripped revisions and not
+ # revisions missing because the cache is out-of-date.
+ self.updatebranchcache()
def destroyed(self, newheadnodes=None):
'''Inform the repository that nodes have been destroyed.
@@ -56,10 +56,6 @@
return s
def strip(ui, repo, nodelist, backup="all", topic='backup'):
- # It simplifies the logic around updating the branchheads cache if we only
- # have to consider the effect of the stripped revisions and not revisions
- # missing because the cache is out-of-date.
- repo.updatebranchcache()
repo.destroying()
cl = repo.changelog