Mercurial > hg
comparison tests/test-verify.t @ 28114:2a03a365f645
verify: use similar language for missing manifest and file revisions
When a changeset refers to a manifest revision that's not found in the
manifest log, we say "changeset refers to missing revision X", but
when a manifest refers to file revision that's not found in the
filelog, we say "X in manifests not found". The language used for
missing manifest revisions seems clearer, so let's use that for
missing filelog revisions too.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 07 Feb 2016 22:46:20 -0800 |
parents | d2e0d57824c2 |
children | 408446e4b10c |
comparison
equal
deleted
inserted
replaced
28113:d2e0d57824c2 | 28114:2a03a365f645 |
---|---|
44 checking manifests | 44 checking manifests |
45 crosschecking files in changesets and manifests | 45 crosschecking files in changesets and manifests |
46 checking files | 46 checking files |
47 warning: revlog 'data/FOO.txt.i' not in fncache! | 47 warning: revlog 'data/FOO.txt.i' not in fncache! |
48 0: empty or missing FOO.txt | 48 0: empty or missing FOO.txt |
49 FOO.txt@0: f62022d3d590 in manifests not found | 49 FOO.txt@0: manifest refers to unknown revision f62022d3d590 |
50 warning: revlog 'data/QUICK.txt.i' not in fncache! | 50 warning: revlog 'data/QUICK.txt.i' not in fncache! |
51 0: empty or missing QUICK.txt | 51 0: empty or missing QUICK.txt |
52 QUICK.txt@0: 88b857db8eba in manifests not found | 52 QUICK.txt@0: manifest refers to unknown revision 88b857db8eba |
53 warning: revlog 'data/bar.txt.i' not in fncache! | 53 warning: revlog 'data/bar.txt.i' not in fncache! |
54 0: empty or missing bar.txt | 54 0: empty or missing bar.txt |
55 bar.txt@0: 256559129457 in manifests not found | 55 bar.txt@0: manifest refers to unknown revision 256559129457 |
56 3 files, 1 changesets, 0 total revisions | 56 3 files, 1 changesets, 0 total revisions |
57 3 warnings encountered! | 57 3 warnings encountered! |
58 hint: run "hg debugrebuildfncache" to recover from corrupt fncache | 58 hint: run "hg debugrebuildfncache" to recover from corrupt fncache |
59 6 integrity errors encountered! | 59 6 integrity errors encountered! |
60 (first damaged changeset appears to be 0) | 60 (first damaged changeset appears to be 0) |
100 | 100 |
101 $ rm .hg/store/data/file.* | 101 $ rm .hg/store/data/file.* |
102 $ hg verify -q | 102 $ hg verify -q |
103 warning: revlog 'data/file.i' not in fncache! | 103 warning: revlog 'data/file.i' not in fncache! |
104 0: empty or missing file | 104 0: empty or missing file |
105 file@0: 362fef284ce2 in manifests not found | 105 file@0: manifest refers to unknown revision 362fef284ce2 |
106 file@1: c10f2164107d in manifests not found | 106 file@1: manifest refers to unknown revision c10f2164107d |
107 1 warnings encountered! | 107 1 warnings encountered! |
108 hint: run "hg debugrebuildfncache" to recover from corrupt fncache | 108 hint: run "hg debugrebuildfncache" to recover from corrupt fncache |
109 3 integrity errors encountered! | 109 3 integrity errors encountered! |
110 (first damaged changeset appears to be 0) | 110 (first damaged changeset appears to be 0) |
111 [1] | 111 [1] |
128 0: empty or missing changelog | 128 0: empty or missing changelog |
129 manifest@0: d0b6632564d4 not in changesets | 129 manifest@0: d0b6632564d4 not in changesets |
130 manifest@1: 941fc4534185 not in changesets | 130 manifest@1: 941fc4534185 not in changesets |
131 warning: revlog 'data/file.i' not in fncache! | 131 warning: revlog 'data/file.i' not in fncache! |
132 ?: empty or missing file | 132 ?: empty or missing file |
133 file@0: 362fef284ce2 in manifests not found | 133 file@0: manifest refers to unknown revision 362fef284ce2 |
134 file@1: c10f2164107d in manifests not found | 134 file@1: manifest refers to unknown revision c10f2164107d |
135 1 warnings encountered! | 135 1 warnings encountered! |
136 hint: run "hg debugrebuildfncache" to recover from corrupt fncache | 136 hint: run "hg debugrebuildfncache" to recover from corrupt fncache |
137 6 integrity errors encountered! | 137 6 integrity errors encountered! |
138 (first damaged changeset appears to be 0) | 138 (first damaged changeset appears to be 0) |
139 [1] | 139 [1] |
180 | 180 |
181 Filelog missing entry | 181 Filelog missing entry |
182 | 182 |
183 $ cp -f .hg/store-partial/data/file.* .hg/store/data | 183 $ cp -f .hg/store-partial/data/file.* .hg/store/data |
184 $ hg verify -q | 184 $ hg verify -q |
185 file@1: c10f2164107d in manifests not found | 185 file@1: manifest refers to unknown revision c10f2164107d |
186 1 integrity errors encountered! | 186 1 integrity errors encountered! |
187 (first damaged changeset appears to be 1) | 187 (first damaged changeset appears to be 1) |
188 [1] | 188 [1] |
189 $ cp -r .hg/store-full/* .hg/store | 189 $ cp -r .hg/store-full/* .hg/store |
190 | 190 |
206 $ cp -f .hg/store-partial/00changelog.* .hg/store | 206 $ cp -f .hg/store-partial/00changelog.* .hg/store |
207 $ cp -f .hg/store-partial/data/file.* .hg/store/data | 207 $ cp -f .hg/store-partial/data/file.* .hg/store/data |
208 $ hg verify -q | 208 $ hg verify -q |
209 manifest@?: rev 1 points to nonexistent changeset 1 | 209 manifest@?: rev 1 points to nonexistent changeset 1 |
210 manifest@?: 941fc4534185 not in changesets | 210 manifest@?: 941fc4534185 not in changesets |
211 file@?: c10f2164107d in manifests not found | 211 file@?: manifest refers to unknown revision c10f2164107d |
212 3 integrity errors encountered! | 212 3 integrity errors encountered! |
213 [1] | 213 [1] |
214 $ cp -r .hg/store-full/* .hg/store | 214 $ cp -r .hg/store-full/* .hg/store |
215 | 215 |
216 Manifest and filelog missing entry | 216 Manifest and filelog missing entry |