##// END OF EJS Templates
largefiles: report localstore errors with single line warnings messages...
Mads Kiilerich -
r18545:a49b7c9f default
parent child Browse files
Show More
@@ -63,23 +63,19 b' class localstore(basestore.basestore):'
63 return False
63 return False
64
64
65 expecthash = fctx.data()[0:40]
65 expecthash = fctx.data()[0:40]
66 storepath = lfutil.storepath(self.remote, expecthash)
66 verified.add(key)
67 verified.add(key)
67 if not lfutil.instore(self.remote, expecthash):
68 if not lfutil.instore(self.remote, expecthash):
68 self.ui.warn(
69 self.ui.warn(
69 _('changeset %s: %s missing\n'
70 _('changeset %s: %s references missing %s\n')
70 ' (looked for hash %s)\n')
71 % (cset, filename, storepath))
71 % (cset, filename, expecthash))
72 return True # failed
72 return True # failed
73
73
74 if contents:
74 if contents:
75 storepath = lfutil.storepath(self.remote, expecthash)
76 actualhash = lfutil.hashfile(storepath)
75 actualhash = lfutil.hashfile(storepath)
77 if actualhash != expecthash:
76 if actualhash != expecthash:
78 self.ui.warn(
77 self.ui.warn(
79 _('changeset %s: %s: contents differ\n'
78 _('changeset %s: %s references corrupted %s\n')
80 ' (%s:\n'
79 % (cset, filename, storepath))
81 ' expected hash %s,\n'
82 ' but got %s)\n')
83 % (cset, filename, storepath, expecthash, actualhash))
84 return True # failed
80 return True # failed
85 return False
81 return False
@@ -1202,8 +1202,7 b' revert some files to an older revision'
1202 checking files
1202 checking files
1203 10 files, 10 changesets, 28 total revisions
1203 10 files, 10 changesets, 28 total revisions
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 references missing $TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928
1206 (looked for hash e166e74c7303192238d60af5a9c4ce9bef0b7928)
1207 verified existence of 3 revisions of 3 largefiles
1206 verified existence of 3 revisions of 3 largefiles
1208 [1]
1207 [1]
1209
1208
@@ -1211,10 +1210,7 b' revert some files to an older revision'
1211 $ echo '5 cents' > $TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928
1210 $ echo '5 cents' > $TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928
1212 $ hg verify -q --large --lfc
1211 $ hg verify -q --large --lfc
1213 searching 1 changesets for largefiles
1212 searching 1 changesets for largefiles
1214 changeset 9:598410d3eb9a: sub/large4: contents differ
1213 changeset 9:598410d3eb9a: sub/large4 references corrupted $TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928
1215 ($TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928: (glob)
1216 expected hash e166e74c7303192238d60af5a9c4ce9bef0b7928,
1217 but got 1f19b76d5b3cad1472c87efb42b582c97e040060)
1218 verified contents of 3 revisions of 3 largefiles
1214 verified contents of 3 revisions of 3 largefiles
1219 [1]
1215 [1]
1220
1216
@@ -1225,28 +1221,13 b' revert some files to an older revision'
1225 $ echo 'T-shirt' > $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1221 $ echo 'T-shirt' > $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1226 $ hg verify -q --large --lfa --lfc
1222 $ hg verify -q --large --lfa --lfc
1227 searching 10 changesets for largefiles
1223 searching 10 changesets for largefiles
1228 changeset 0:30d30fe6a5be: large1 missing
1224 changeset 0:30d30fe6a5be: large1 references missing $TESTTMP/d/.hg/largefiles/4669e532d5b2c093a78eca010077e708a071bb64
1229 (looked for hash 4669e532d5b2c093a78eca010077e708a071bb64)
1225 changeset 0:30d30fe6a5be: sub/large2 references missing $TESTTMP/d/.hg/largefiles/1deebade43c8c498a3c8daddac0244dc55d1331d
1230 changeset 0:30d30fe6a5be: sub/large2 missing
1226 changeset 1:ce8896473775: large1 references missing $TESTTMP/d/.hg/largefiles/5f78770c0e77ba4287ad6ef3071c9bf9c379742f
1231 (looked for hash 1deebade43c8c498a3c8daddac0244dc55d1331d)
1227 changeset 1:ce8896473775: sub/large2 references corrupted $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1232 changeset 1:ce8896473775: large1 missing
1228 changeset 3:9e8fbc4bce62: large1 references corrupted $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1233 (looked for hash 5f78770c0e77ba4287ad6ef3071c9bf9c379742f)
1229 changeset 4:74c02385b94c: large3 references corrupted $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1234 changeset 1:ce8896473775: sub/large2: contents differ
1230 changeset 4:74c02385b94c: sub/large4 references corrupted $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
1235 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4: (glob)
1236 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1237 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1238 changeset 3:9e8fbc4bce62: large1: contents differ
1239 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4: (glob)
1240 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1241 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1242 changeset 4:74c02385b94c: large3: contents differ
1243 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4: (glob)
1244 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1245 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1246 changeset 4:74c02385b94c: sub/large4: contents differ
1247 ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4: (glob)
1248 expected hash eb7338044dc27f9bc59b8dd5a246b065ead7a9c4,
1249 but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
1250 verified contents of 15 revisions of 6 largefiles
1231 verified contents of 15 revisions of 6 largefiles
1251 [1]
1232 [1]
1252
1233
@@ -317,18 +317,12 b' process.'
317 checking files
317 checking files
318 8 files, 7 changesets, 12 total revisions
318 8 files, 7 changesets, 12 total revisions
319 searching 7 changesets for largefiles
319 searching 7 changesets for largefiles
320 changeset 0:d4892ec57ce2: large missing
320 changeset 0:d4892ec57ce2: large references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/2e000fa7e85759c7f4c254d4d9c33ef481e459a7
321 (looked for hash 2e000fa7e85759c7f4c254d4d9c33ef481e459a7)
321 changeset 1:334e5237836d: sub/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
322 changeset 1:334e5237836d: sub/maybelarge.dat missing
322 changeset 2:261ad3f3f037: stuff/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c
323 (looked for hash 34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c)
323 changeset 3:55759520c76f: sub/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/76236b6a2c6102826c61af4297dd738fb3b1de38
324 changeset 2:261ad3f3f037: stuff/maybelarge.dat missing
324 changeset 5:9cc5aa7204f0: stuff/maybelarge.dat references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/76236b6a2c6102826c61af4297dd738fb3b1de38
325 (looked for hash 34e163be8e43c5631d8b92e9c43ab0bf0fa62b9c)
325 changeset 6:17126745edfd: anotherlarge references missing $TESTTMP/largefiles-repo-hg/.hg/largefiles/3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3
326 changeset 3:55759520c76f: sub/maybelarge.dat missing
327 (looked for hash 76236b6a2c6102826c61af4297dd738fb3b1de38)
328 changeset 5:9cc5aa7204f0: stuff/maybelarge.dat missing
329 (looked for hash 76236b6a2c6102826c61af4297dd738fb3b1de38)
330 changeset 6:17126745edfd: anotherlarge missing
331 (looked for hash 3b71f43ff30f4b15b5cd85dd9e95ebc7e84eb5a3)
332 verified existence of 6 revisions of 4 largefiles
326 verified existence of 6 revisions of 4 largefiles
333 [1]
327 [1]
334 $ hg -R largefiles-repo-hg showconfig paths
328 $ hg -R largefiles-repo-hg showconfig paths
General Comments 0
You need to be logged in to leave comments. Login now