Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 18312:7331ee72f99c
localrepo: write the phasecache when destroying nodes
author | Idan Kamara <idankk86@gmail.com> |
---|---|
date | Fri, 11 Jan 2013 00:05:52 +0200 |
parents | 084074648755 |
children | 3e4a944c0d04 |
comparison
equal
deleted
inserted
replaced
18311:084074648755 | 18312:7331ee72f99c |
---|---|
1393 ''' | 1393 ''' |
1394 # It simplifies the logic around updating the branchheads cache if we | 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 | 1395 # only have to consider the effect of the stripped revisions and not |
1396 # revisions missing because the cache is out-of-date. | 1396 # revisions missing because the cache is out-of-date. |
1397 branchmap.updatecache(self) | 1397 branchmap.updatecache(self) |
1398 | |
1399 # When using the same lock to commit and strip, the phasecache is left | |
1400 # dirty after committing. Then when we strip, the repo is invalidated, | |
1401 # causing those changes to disappear. | |
1402 if '_phasecache' in vars(self): | |
1403 self._phasecache.write() | |
1398 | 1404 |
1399 @unfilteredmethod | 1405 @unfilteredmethod |
1400 def destroyed(self, newheadnodes=None): | 1406 def destroyed(self, newheadnodes=None): |
1401 '''Inform the repository that nodes have been destroyed. | 1407 '''Inform the repository that nodes have been destroyed. |
1402 Intended for use by strip and rollback, so there's a common | 1408 Intended for use by strip and rollback, so there's a common |