comparison tests/test-narrow-clone-stream.t @ 40583:186921bc8e66

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.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 10 Nov 2018 11:47:36 +0900
parents a4c2788e8f48
children a694a7159125
comparison
equal deleted inserted replaced
40582:a4c2788e8f48 40583:186921bc8e66
1 #testcases tree flat 1 #testcases tree flat-fncache flat-nofncache
2 2
3 Tests narrow stream clones 3 Tests narrow stream clones
4 4
5 $ . "$TESTDIR/narrow-library.sh" 5 $ . "$TESTDIR/narrow-library.sh"
6 6
7 #if tree 7 #if tree
8 $ cat << EOF >> $HGRCPATH 8 $ cat << EOF >> $HGRCPATH
9 > [experimental] 9 > [experimental]
10 > treemanifest = 1 10 > treemanifest = 1
11 > EOF
12 #endif
13
14 #if flat-nofncache
15 $ cat << EOF >> $HGRCPATH
16 > [format]
17 > usefncache = 0
11 > EOF 18 > EOF
12 #endif 19 #endif
13 20
14 Server setup 21 Server setup
15 22
52 I path:dir/src/F10 59 I path:dir/src/F10
53 60
54 Making sure we have the correct set of requirements 61 Making sure we have the correct set of requirements
55 62
56 $ cat .hg/requires 63 $ cat .hg/requires
57 dotencode 64 dotencode (tree flat-fncache !)
58 fncache 65 fncache (tree flat-fncache !)
59 generaldelta 66 generaldelta
60 narrowhg-experimental 67 narrowhg-experimental
61 revlogv1 68 revlogv1
62 store 69 store
63 treemanifest (tree !) 70 treemanifest (tree !)
65 Making sure store has the required files 72 Making sure store has the required files
66 73
67 $ ls .hg/store/ 74 $ ls .hg/store/
68 00changelog.i 75 00changelog.i
69 00manifest.i 76 00manifest.i
70 data 77 data (tree flat-fncache !)
71 fncache 78 fncache (tree flat-fncache !)
72 meta (tree !) 79 meta (tree !)
73 narrowspec 80 narrowspec
74 undo 81 undo
75 undo.backupfiles 82 undo.backupfiles
76 undo.phaseroots 83 undo.phaseroots
77 84
78 Checking that repository has all the required data and not broken 85 Checking that repository has all the required data and not broken
79 86
87 #if flat-nofncache
88 $ hg verify
89 checking changesets
90 checking manifests
91 crosschecking files in changesets and manifests
92 checking files
93 warning: revlog 'data/dir/src/F10.i' not in fncache!
94 9: empty or missing dir/src/F10
95 dir/src/F10@9: manifest refers to unknown revision 419ee72d626b
96 checked 40 changesets with 0 changes to 1 files
97 1 warnings encountered!
98 hint: run "hg debugrebuildfncache" to recover from corrupt fncache
99 2 integrity errors encountered!
100 (first damaged changeset appears to be 9)
101 [1]
102 #else
80 $ hg verify 103 $ hg verify
81 checking changesets 104 checking changesets
82 checking manifests 105 checking manifests
83 checking directory manifests (tree !) 106 checking directory manifests (tree !)
84 crosschecking files in changesets and manifests 107 crosschecking files in changesets and manifests
85 checking files 108 checking files
86 checked 40 changesets with 1 changes to 1 files 109 checked 40 changesets with 1 changes to 1 files
110 #endif