tests/test-largefiles.t
branchstable
changeset 18486 1067a6240f86
parent 18485 39cecda9ff77
child 18487 7aacc114d4f8
equal deleted inserted replaced
18485:39cecda9ff77 18486:1067a6240f86
  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 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:
  1211   $ echo '5 cents' > $TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928
  1211   $ echo '5 cents' > $TESTTMP/d/.hg/largefiles/e166e74c7303192238d60af5a9c4ce9bef0b7928
  1212   $ hg verify -q --large --lfc
  1212   $ hg verify -q --large --lfc
  1213   searching 1 changesets for largefiles
  1213   searching 1 changesets for largefiles
  1214   changeset 9:598410d3eb9a: sub/large4: contents differ
  1214   changeset 9:598410d3eb9a: sub/large4: contents differ
  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
  1222   $ mv e166e74c7303192238d60af5a9c4ce9bef0b7928 $TESTTMP/d/.hg/largefiles/
  1222   $ mv e166e74c7303192238d60af5a9c4ce9bef0b7928 $TESTTMP/d/.hg/largefiles/
  1223 
  1223 
  1225   $ echo 'T-shirt' > $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
  1225   $ echo 'T-shirt' > $TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4
  1226   $ hg verify -q --large --lfa --lfc
  1226   $ hg verify -q --large --lfa --lfc
  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)
  1236   changeset 3:9e8fbc4bce62: large1: contents differ
  1238   changeset 3:9e8fbc4bce62: large1: contents differ
  1237     ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4:
  1239     ($TESTTMP/d/.hg/largefiles/eb7338044dc27f9bc59b8dd5a246b065ead7a9c4:
  1239     but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
  1241     but got cfef678f24d3e339944138ecdd8fd85ca21d820f)
  1240   changeset 4:74c02385b94c: large3: contents differ
  1242   changeset 4:74c02385b94c: large3: contents differ
  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
  1248 
  1255 
  1249 Merging does not revert to old versions of largefiles and also check
  1256 Merging does not revert to old versions of largefiles and also check