##// END OF EJS Templates
localrepo: update the branchmap when destroying nodes...
Idan Kamara -
r18311:08407464 default
parent child Browse files
Show More
@@ -1391,7 +1391,10 b' class localrepository(object):'
1391 changes to stay in memory (waiting for the next unlock), or vanish
1391 changes to stay in memory (waiting for the next unlock), or vanish
1392 completely.
1392 completely.
1393 '''
1393 '''
1394 pass
1394 # It simplifies the logic around updating the branchheads cache if we
1395 # only have to consider the effect of the stripped revisions and not
1396 # revisions missing because the cache is out-of-date.
1397 branchmap.updatecache(self)
1395
1398
1396 @unfilteredmethod
1399 @unfilteredmethod
1397 def destroyed(self, newheadnodes=None):
1400 def destroyed(self, newheadnodes=None):
@@ -6,7 +6,7 b''
6 # This software may be used and distributed according to the terms of the
6 # This software may be used and distributed according to the terms of the
7 # GNU General Public License version 2 or any later version.
7 # GNU General Public License version 2 or any later version.
8
8
9 from mercurial import changegroup, branchmap
9 from mercurial import changegroup
10 from mercurial.node import short
10 from mercurial.node import short
11 from mercurial.i18n import _
11 from mercurial.i18n import _
12 import os
12 import os
@@ -57,10 +57,6 b' def _collectbrokencsets(repo, files, str'
57
57
58 def strip(ui, repo, nodelist, backup="all", topic='backup'):
58 def strip(ui, repo, nodelist, backup="all", topic='backup'):
59 repo = repo.unfiltered()
59 repo = repo.unfiltered()
60 # It simplifies the logic around updating the branchheads cache if we only
61 # have to consider the effect of the stripped revisions and not revisions
62 # missing because the cache is out-of-date.
63 branchmap.updatecache(repo)
64 repo.destroying()
60 repo.destroying()
65
61
66 cl = repo.changelog
62 cl = repo.changelog
General Comments 0
You need to be logged in to leave comments. Login now