This is an archive of the discontinued Mercurial Phabricator instance.

debugrebuildfncache: add a cheaper option to rebuild the fncache
ClosedPublic

Authored by valentin.gatienbaron on Aug 6 2021, 4:44 PM.

Details

Summary

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.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.