Mercurial > hg
comparison tests/test-commit-amend.t @ 16716:0311a6abd38a
localrepo: strip now incrementally updates the branchheads cache
Destroying history via strip used to invalidate the branchheads cache,
causing it to be regenerated the next time it is read. This is
expensive in large repos. This change converts strip to pass info to
localrepo.destroyed() to enable to it to incrementally update the
cache, improving the performance of strip and other operations that
depend on it (e.g., rebase).
This change also strengthens a bit the integrity checking of the
branchheads cache when it is read, by rejecting the cache if it has
nodes in it that no longer exist.
author | Joshua Redstone <joshua.redstone@fb.com> |
---|---|
date | Fri, 11 May 2012 10:35:54 -0700 |
parents | f30226b1a46a |
children | 27b2e1823e83 |
comparison
equal
deleted
inserted
replaced
16715:1e24da6fcd67 | 16716:0311a6abd38a |
---|---|
245 | 245 |
246 Same thing, different code path: | 246 Same thing, different code path: |
247 | 247 |
248 $ echo b >> b | 248 $ echo b >> b |
249 $ hg ci -m 'reopen branch' | 249 $ hg ci -m 'reopen branch' |
250 created new head | |
250 reopening closed branch head 4 | 251 reopening closed branch head 4 |
251 $ echo b >> b | 252 $ echo b >> b |
252 $ hg ci --amend --close-branch | 253 $ hg ci --amend --close-branch |
253 saved backup bundle to $TESTTMP/.hg/strip-backup/5e302dcc12b8-amend-backup.hg | 254 saved backup bundle to $TESTTMP/.hg/strip-backup/5e302dcc12b8-amend-backup.hg |
254 $ hg branches | 255 $ hg branches |