D6721: fncache: show that debugrebuildfncache is partly broken
valentin.gatienbaron (Valentin Gatien-Baron)
phabricator at mercurial-scm.org
Mon Aug 12 17:23:11 EDT 2019
Closed by commit rHG6b71334f2540: fncache: show that debugrebuildfncache is partly broken (authored by valentin.gatienbaron).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D6721?vs=16174&id=16176
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D6721/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D6721
AFFECTED FILES
tests/test-fncache.t
CHANGE DETAILS
diff --git a/tests/test-fncache.t b/tests/test-fncache.t
--- a/tests/test-fncache.t
+++ b/tests/test-fncache.t
@@ -435,6 +435,17 @@
data/.bar.i
data/foo.i
+debugrebuildfncache fails to recover from truncated line in fncache
+
+ $ printf a > .hg/store/fncache
+ $ hg debugrebuildfncache
+ abort: fncache does not ends with a newline
+ (use 'hg debugrebuildfncache' to rebuild the fncache)
+ [255]
+
+ $ cat .hg/store/fncache | sort
+ a
+
$ cd ..
Try a simple variation without dotencode to ensure fncache is ignorant of encoding
To: valentin.gatienbaron, #hg-reviewers, pulkit
Cc: mjpieters, mercurial-devel
More information about the Mercurial-devel
mailing list