debugrebuildfncache: add a cheaper option to rebuild the fncache
On my repository, debugrebuildfncache takes 5-10min with the lock. With the flag added in this commit, it takes 10s. The tradeoff is that it only recovers from certain kinds of corruptions. It is intended to to recover faster from fncaches broken by a revlog split during a transaction that ends up being rolled back. Differential Revision: https://phab.mercurial-scm.org/D11265
Showing
- mercurial/debugcommands.py 15 additions, 3 deletionsmercurial/debugcommands.py
- mercurial/repair.py 31 additions, 19 deletionsmercurial/repair.py
- tests/test-completion.t 1 addition, 1 deletiontests/test-completion.t
- tests/test-transaction-rollback-on-revlog-split.t 4 additions, 0 deletionstests/test-transaction-rollback-on-revlog-split.t
Loading
Please register or sign in to comment