##// END OF EJS Templates
largefiles: verify all files in each revision and report errors in any revision...
Mads Kiilerich -
r18486:1067a624 stable
parent child Browse files
Show More
@@ -106,8 +106,9 b' class basestore(object):'
106 cctx = self.repo[rev]
106 cctx = self.repo[rev]
107 cset = "%d:%s" % (cctx.rev(), node.short(cctx.node()))
107 cset = "%d:%s" % (cctx.rev(), node.short(cctx.node()))
108
108
109 failed = util.any(self._verifyfile(
109 for standin in cctx:
110 cctx, cset, contents, standin, verified) for standin in cctx)
110 if self._verifyfile(cctx, cset, contents, standin, verified):
111 failed = True
111
112
112 numrevs = len(verified)
113 numrevs = len(verified)
113 numlfiles = len(set([fname for (fname, fnode) in verified]))
114 numlfiles = len(set([fname for (fname, fnode) in verified]))
@@ -1204,7 +1204,7 b' revert some files to an older revision'
1204 searching 1 changesets for largefiles
1204 searching 1 changesets for largefiles
1205 changeset 9:598410d3eb9a: sub/large4 missing
1205 changeset 9:598410d3eb9a: sub/large4 missing
1206 (looked for hash e166e74c7303192238d60af5a9c4ce9bef0b7928)
1206 (looked for hash e166e74c7303192238d60af5a9c4ce9bef0b7928)
1207 verified existence of 1 revisions of 1 largefiles
1207 verified existence of 3 revisions of 3 largefiles
1208 [1]
1208 [1]
1209
1209
1210 - introduce corruption and make sure that it is caught when checking content:
1210 - introduce corruption and make sure that it is caught when checking content:
@@ -1215,7 +1215,7 b' revert some files to an older revision'
1215 ($TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928:
1215 ($TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928:
1216 expected hash e166e74c7303192238d60af5a9c4ce9bef0b7928,
1216 expected hash e166e74c7303192238d60af5a9c4ce9bef0b7928,
1217 but got 1f19b76d5b3cad1472c87efb42b582c97e040060)
1217 but got 1f19b76d5b3cad1472c87efb42b582c97e040060)
1218 verified contents of 1 revisions of 1 largefiles
1218 verified contents of 3 revisions of 3 largefiles
1219 [1]
1219 [1]
1220
1220
1221 - cleanup
1221 - cleanup
@@ -1227,9 +1227,11 b' revert some files to an older revision'
1227 searching 10 changesets for largefiles
1227 searching 10 changesets for largefiles
1228 changeset 0:30d30fe6a5be: large1 missing
1228 changeset 0:30d30fe6a5be: large1 missing
1229 (looked for hash 4669e532d5b2c093a78eca010077e708a071bb64)
1229 (looked for hash 4669e532d5b2c093a78eca010077e708a071bb64)
1230 changeset 0:30d30fe6a5be: sub/large2 missing
1231 (looked for hash 1deebade43c8c498a3c8daddac0244dc55d1331d)
1230 changeset 1:ce8896473775: large1 missing
1232 changeset 1:ce8896473775: large1 missing
1231 (looked for hash 5f78770c0e77ba4287ad6ef3071c9bf9c379742f)
1233 (looked for hash 5f78770c0e77ba4287ad6ef3071c9bf9c379742f)
1232 changeset 2:51a0ae4d5864: sub/large2: contents differ
1234 changeset 1:ce8896473775: sub/large2: contents differ
1233 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4:
1235 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4:
1234 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1236 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1235 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1237 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
@@ -1241,7 +1243,12 b' revert some files to an older revision'
1241 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4:
1243 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4:
1242 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1244 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1243 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1245 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1244 verified contents of 13 revisions of 6 largefiles
1246 changeset 4:74c02385b94c: sub/large4: contents differ
1247 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4:
1248 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1249 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1250 verified contents of 15 revisions of 6 largefiles
1251 [1]
1245
1252
1246 - cleanup
1253 - cleanup
1247 $ rm $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1254 $ rm $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
General Comments 0
You need to be logged in to leave comments. Login now