comparison mercurial/localrepo.py @ 18311:084074648755

localrepo: update the branchmap when destroying nodes This was previously called directly during strip. Moving it to destroying also means that it'll be called through _rollback, which seems harmless.
author Idan Kamara <idankk86@gmail.com>
date Sat, 05 Jan 2013 16:50:12 +0200
parents 4499ba5ac35c
children 7331ee72f99c
comparison
equal deleted inserted replaced
18310:4499ba5ac35c 18311:084074648755
1389 to be flushed when the current lock is released. Because a call to 1389 to be flushed when the current lock is released. Because a call to
1390 destroyed is imminent, the repo will be invalidated causing those 1390 destroyed is imminent, the repo will be invalidated causing those
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):
1398 '''Inform the repository that nodes have been destroyed. 1401 '''Inform the repository that nodes have been destroyed.
1399 Intended for use by strip and rollback, so there's a common 1402 Intended for use by strip and rollback, so there's a common