tests/test-lfs.t
changeset 49826 c84844cd523a
parent 49534 92892dff03f3
child 50725 7e5be4a7cda7
equal deleted inserted replaced
49825:2f2682f40ea0 49826:c84844cd523a
   787   checking manifests
   787   checking manifests
   788   crosschecking files in changesets and manifests
   788   crosschecking files in changesets and manifests
   789   checking files
   789   checking files
   790    l@1: unpacking 46a2f24864bc: integrity check failed on l:0
   790    l@1: unpacking 46a2f24864bc: integrity check failed on l:0
   791    large@0: unpacking 2c531e0992ff: integrity check failed on large:0
   791    large@0: unpacking 2c531e0992ff: integrity check failed on large:0
       
   792   not checking dirstate because of previous errors
   792   checked 5 changesets with 10 changes to 4 files
   793   checked 5 changesets with 10 changes to 4 files
   793   2 integrity errors encountered!
   794   2 integrity errors encountered!
   794   (first damaged changeset appears to be 0)
   795   (first damaged changeset appears to be 0)
   795   [1]
   796   [1]
   796 
   797 
   849   checking manifests
   850   checking manifests
   850   crosschecking files in changesets and manifests
   851   crosschecking files in changesets and manifests
   851   checking files
   852   checking files
   852   lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store
   853   lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store
   853   lfs blob sha256:66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e renamed large -> l
   854   lfs blob sha256:66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e renamed large -> l
       
   855   checking dirstate
   854   checked 5 changesets with 10 changes to 4 files
   856   checked 5 changesets with 10 changes to 4 files
   855 
   857 
   856 Verify will not try to download lfs blobs, if told not to by the config option
   858 Verify will not try to download lfs blobs, if told not to by the config option
   857 
   859 
   858   $ hg -R fromcorrupt --config lfs.usercache=emptycache verify -v \
   860   $ hg -R fromcorrupt --config lfs.usercache=emptycache verify -v \
   863   checking manifests
   865   checking manifests
   864   crosschecking files in changesets and manifests
   866   crosschecking files in changesets and manifests
   865   checking files
   867   checking files
   866   lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store
   868   lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store
   867   lfs blob sha256:66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e renamed large -> l
   869   lfs blob sha256:66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e renamed large -> l
       
   870   checking dirstate
   868   checked 5 changesets with 10 changes to 4 files
   871   checked 5 changesets with 10 changes to 4 files
   869 
   872 
   870 Verify will copy/link all lfs objects into the local store that aren't already
   873 Verify will copy/link all lfs objects into the local store that aren't already
   871 present.  Bypass the corrupted usercache to show that verify works when fed by
   874 present.  Bypass the corrupted usercache to show that verify works when fed by
   872 the (uncorrupted) remote store.
   875 the (uncorrupted) remote store.
   883   lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the local lfs store
   886   lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the local lfs store
   884   lfs: adding 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 to the usercache
   887   lfs: adding 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 to the usercache
   885   lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store
   888   lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store
   886   lfs: adding b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c to the usercache
   889   lfs: adding b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c to the usercache
   887   lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store
   890   lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store
       
   891   checking dirstate
   888   checked 5 changesets with 10 changes to 4 files
   892   checked 5 changesets with 10 changes to 4 files
   889 
   893 
   890 Verify will not copy/link a corrupted file from the usercache into the local
   894 Verify will not copy/link a corrupted file from the usercache into the local
   891 store, and poison it.  (The verify with a good remote now works.)
   895 store, and poison it.  (The verify with a good remote now works.)
   892 
   896 
   900    l@1: unpacking 46a2f24864bc: integrity check failed on l:0
   904    l@1: unpacking 46a2f24864bc: integrity check failed on l:0
   901   lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store
   905   lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store
   902    large@0: unpacking 2c531e0992ff: integrity check failed on large:0
   906    large@0: unpacking 2c531e0992ff: integrity check failed on large:0
   903   lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store
   907   lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store
   904   lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store
   908   lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store
       
   909   not checking dirstate because of previous errors
   905   checked 5 changesets with 10 changes to 4 files
   910   checked 5 changesets with 10 changes to 4 files
   906   2 integrity errors encountered!
   911   2 integrity errors encountered!
   907   (first damaged changeset appears to be 0)
   912   (first damaged changeset appears to be 0)
   908   [1]
   913   [1]
   909   $ hg -R fromcorrupt --config lfs.usercache=emptycache verify -v
   914   $ hg -R fromcorrupt --config lfs.usercache=emptycache verify -v
   915   lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the usercache
   920   lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the usercache
   916   lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store
   921   lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store
   917   lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the local lfs store
   922   lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the local lfs store
   918   lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store
   923   lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store
   919   lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store
   924   lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store
       
   925   checking dirstate
   920   checked 5 changesets with 10 changes to 4 files
   926   checked 5 changesets with 10 changes to 4 files
   921 
   927 
   922 Damaging a file required by the update destination fails the update.
   928 Damaging a file required by the update destination fails the update.
   923 
   929 
   924   $ echo 'damage' >> $TESTTMP/dummy-remote/22/f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b
   930   $ echo 'damage' >> $TESTTMP/dummy-remote/22/f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b
   941   checking manifests
   947   checking manifests
   942   crosschecking files in changesets and manifests
   948   crosschecking files in changesets and manifests
   943   checking files
   949   checking files
   944    l@1: unpacking 46a2f24864bc: integrity check failed on l:0
   950    l@1: unpacking 46a2f24864bc: integrity check failed on l:0
   945    large@0: unpacking 2c531e0992ff: integrity check failed on large:0
   951    large@0: unpacking 2c531e0992ff: integrity check failed on large:0
       
   952   not checking dirstate because of previous errors
   946   checked 5 changesets with 10 changes to 4 files
   953   checked 5 changesets with 10 changes to 4 files
   947   2 integrity errors encountered!
   954   2 integrity errors encountered!
   948   (first damaged changeset appears to be 0)
   955   (first damaged changeset appears to be 0)
   949   [1]
   956   [1]
   950 
   957 
   970    l@1: unpacking 46a2f24864bc: integrity check failed on l:0
   977    l@1: unpacking 46a2f24864bc: integrity check failed on l:0
   971   lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store
   978   lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store
   972    large@0: unpacking 2c531e0992ff: integrity check failed on large:0
   979    large@0: unpacking 2c531e0992ff: integrity check failed on large:0
   973   lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store
   980   lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store
   974   lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store
   981   lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store
       
   982   not checking dirstate because of previous errors
   975   checked 5 changesets with 10 changes to 4 files
   983   checked 5 changesets with 10 changes to 4 files
   976   2 integrity errors encountered!
   984   2 integrity errors encountered!
   977   (first damaged changeset appears to be 0)
   985   (first damaged changeset appears to be 0)
   978   [1]
   986   [1]
   979 
   987