diff tests/test-transaction-rollback-on-revlog-split.t @ 47875:0fb328bb2459

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
author Valentin Gatien-Baron <vgatien-baron@janestreet.com>
date Fri, 06 Aug 2021 16:27:17 -0400
parents 308e843f24b1
children f38ae2d7390e
line wrap: on
line diff
--- a/tests/test-transaction-rollback-on-revlog-split.t	Fri Aug 06 16:17:17 2021 -0400
+++ b/tests/test-transaction-rollback-on-revlog-split.t	Fri Aug 06 16:27:17 2021 -0400
@@ -86,6 +86,10 @@
    warning: revlog 'data/file.d' not in fncache!
   1 warnings encountered!
   hint: run "hg debugrebuildfncache" to recover from corrupt fncache
+  $ hg debugrebuildfncache --only-data
+  adding data/file.d
+  1 items added, 0 removed from fncache
+  $ hg verify -q
   $ cd ..