Skip to content
Snippets Groups Projects
Commit 186921bc8e66 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

test-narrow-clone-stream: include no usefncache case which is broken

Since 9aeb9e2d28a7, encoded filenames are filtered by the narrow matcher,
which is clearly wrong.
parent a4c2788e8f48
No related merge requests found
#testcases tree flat #testcases tree flat-fncache flat-nofncache
Tests narrow stream clones Tests narrow stream clones
...@@ -11,6 +11,13 @@ ...@@ -11,6 +11,13 @@
> EOF > EOF
#endif #endif
#if flat-nofncache
$ cat << EOF >> $HGRCPATH
> [format]
> usefncache = 0
> EOF
#endif
Server setup Server setup
$ hg init master $ hg init master
...@@ -54,8 +61,8 @@ ...@@ -54,8 +61,8 @@
Making sure we have the correct set of requirements Making sure we have the correct set of requirements
$ cat .hg/requires $ cat .hg/requires
dotencode dotencode (tree flat-fncache !)
fncache fncache (tree flat-fncache !)
generaldelta generaldelta
narrowhg-experimental narrowhg-experimental
revlogv1 revlogv1
...@@ -67,8 +74,8 @@ ...@@ -67,8 +74,8 @@
$ ls .hg/store/ $ ls .hg/store/
00changelog.i 00changelog.i
00manifest.i 00manifest.i
data data (tree flat-fncache !)
fncache fncache (tree flat-fncache !)
meta (tree !) meta (tree !)
narrowspec narrowspec
undo undo
...@@ -77,6 +84,22 @@ ...@@ -77,6 +84,22 @@
Checking that repository has all the required data and not broken Checking that repository has all the required data and not broken
#if flat-nofncache
$ hg verify
checking changesets
checking manifests
crosschecking files in changesets and manifests
checking files
warning: revlog 'data/dir/src/F10.i' not in fncache!
9: empty or missing dir/src/F10
dir/src/F10@9: manifest refers to unknown revision 419ee72d626b
checked 40 changesets with 0 changes to 1 files
1 warnings encountered!
hint: run "hg debugrebuildfncache" to recover from corrupt fncache
2 integrity errors encountered!
(first damaged changeset appears to be 9)
[1]
#else
$ hg verify $ hg verify
checking changesets checking changesets
checking manifests checking manifests
...@@ -84,3 +107,4 @@ ...@@ -84,3 +107,4 @@
crosschecking files in changesets and manifests crosschecking files in changesets and manifests
checking files checking files
checked 40 changesets with 1 changes to 1 files checked 40 changesets with 1 changes to 1 files
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment