##// END OF EJS Templates
tests: better test coverage of largefiles localstore verify...
Mads Kiilerich -
r18485:39cecda9 stable
parent child Browse files
Show More
@@ -807,6 +807,14 b' Test cloning with --all-largefiles flag'
807 2 largefiles updated, 0 removed
807 2 largefiles updated, 0 removed
808 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
808 4 files updated, 0 files merged, 0 files removed, 0 files unresolved
809 8 additional largefiles cached
809 8 additional largefiles cached
810 $ hg -R a-clone1 verify --large --lfa --lfc
811 checking changesets
812 checking manifests
813 crosschecking files in changesets and manifests
814 checking files
815 10 files, 8 changesets, 24 total revisions
816 searching 8 changesets for largefiles
817 verified contents of 13 revisions of 6 largefiles
810 $ hg -R a-clone1 sum
818 $ hg -R a-clone1 sum
811 parent: 1:ce8896473775
819 parent: 1:ce8896473775
812 edit files
820 edit files
@@ -1170,6 +1178,12 b' revert some files to an older revision'
1170
1178
1171 "verify --large" actually verifies largefiles
1179 "verify --large" actually verifies largefiles
1172
1180
1181 - Where Do We Come From? What Are We? Where Are We Going?
1182 $ pwd
1183 $TESTTMP/e
1184 $ hg paths
1185 default = $TESTTMP/d
1186
1173 $ hg verify --large
1187 $ hg verify --large
1174 checking changesets
1188 checking changesets
1175 checking manifests
1189 checking manifests
@@ -1179,6 +1193,59 b' revert some files to an older revision'
1179 searching 1 changesets for largefiles
1193 searching 1 changesets for largefiles
1180 verified existence of 3 revisions of 3 largefiles
1194 verified existence of 3 revisions of 3 largefiles
1181
1195
1196 - introduce missing blob in local store repo and make sure that this is caught:
1197 $ mv $TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928 .
1198 $ hg verify --large
1199 checking changesets
1200 checking manifests
1201 crosschecking files in changesets and manifests
1202 checking files
1203 10 files, 10 changesets, 28 total revisions
1204 searching 1 changesets for largefiles
1205 changeset 9:598410d3eb9a: sub/large4 missing
1206 (looked for hash e166e74c7303192238d60af5a9c4ce9bef0b7928)
1207 verified existence of 1 revisions of 1 largefiles
1208 [1]
1209
1210 - introduce corruption and make sure that it is caught when checking content:
1211 $ echo '5 cents' > $TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928
1212 $ hg verify -q --large --lfc
1213 searching 1 changesets for largefiles
1214 changeset 9:598410d3eb9a: sub/large4: contents differ
1215 ($TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928:
1216 expected hash e166e74c7303192238d60af5a9c4ce9bef0b7928,
1217 but got 1f19b76d5b3cad1472c87efb42b582c97e040060)
1218 verified contents of 1 revisions of 1 largefiles
1219 [1]
1220
1221 - cleanup
1222 $ mv e166e74c7303192238d60af5a9c4ce9bef0b7928 $TESTTMP/d/.hg/largefiles/
1223
1224 - verifying all revisions will fail because we didn't clone all largefiles to d:
1225 $ echo 'T-shirt' > $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1226 $ hg verify -q --large --lfa --lfc
1227 searching 10 changesets for largefiles
1228 changeset 0:30d30fe6a5be: large1 missing
1229 (looked for hash 4669e532d5b2c093a78eca010077e708a071bb64)
1230 changeset 1:ce8896473775: large1 missing
1231 (looked for hash 5f78770c0e77ba4287ad6ef3071c9bf9c379742f)
1232 changeset 2:51a0ae4d5864: sub/large2: contents differ
1233 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4:
1234 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1235 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1236 changeset 3:9e8fbc4bce62: large1: contents differ
1237 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4:
1238 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1239 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1240 changeset 4:74c02385b94c: large3: contents differ
1241 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4:
1242 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1243 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1244 verified contents of 13 revisions of 6 largefiles
1245
1246 - cleanup
1247 $ rm $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1248
1182 Merging does not revert to old versions of largefiles and also check
1249 Merging does not revert to old versions of largefiles and also check
1183 that merging after having pulled from a non-default remote works
1250 that merging after having pulled from a non-default remote works
1184 correctly.
1251 correctly.
General Comments 0
You need to be logged in to leave comments. Login now