##// END OF EJS Templates
localrepo: strip now incrementally updates the branchheads cache...
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.

File last commit:

r12327:92e30e13 default
r16716:0311a6ab default
Show More
test-remove-new.t
13 lines | 263 B | text/troff | Tads3Lexer
/ tests / test-remove-new.t
Nicolas Dumazet
tests: unify test-remove-new
r12100 test that 'hg commit' does not crash if the user removes a newly added file
$ hg init
$ echo This is file a1 > a
$ hg add a
Martin Geisler
tests: remove unneeded -d flags...
r12156 $ hg commit -m "commit #0"
Nicolas Dumazet
tests: unify test-remove-new
r12100 $ touch b
$ hg add b
$ rm b
Martin Geisler
tests: remove unneeded -d flags...
r12156 $ hg commit -A -m"comment #1"
Nicolas Dumazet
tests: unify test-remove-new
r12100 removing b
nothing changed
Matt Mackall
tests: add exit codes to unified tests
r12316 [1]