Mercurial > hg
comparison tests/test-lfs.t @ 39489:f1186c292d03
verify: make output less confusing (issue5924)
output before: "500 files, 2035 changesets, 2622 total revisions"
output after: "checked 2035 changesets with 2622 changes to 500 files"
new one was suggested in the comments inside the issue.
Differential Revision: https://phab.mercurial-scm.org/D4476
author | Meirambek Omyrzak <meirambek77@gmail.com> |
---|---|
date | Wed, 05 Sep 2018 01:19:48 +0300 |
parents | ff5b6fca1082 |
children | 5abc47d4ca6b |
comparison
equal
deleted
inserted
replaced
39488:d629b6d2f05a | 39489:f1186c292d03 |
---|---|
720 checking manifests | 720 checking manifests |
721 crosschecking files in changesets and manifests | 721 crosschecking files in changesets and manifests |
722 checking files | 722 checking files |
723 l@1: unpacking 46a2f24864bc: integrity check failed on data/l.i:0 | 723 l@1: unpacking 46a2f24864bc: integrity check failed on data/l.i:0 |
724 large@0: unpacking 2c531e0992ff: integrity check failed on data/large.i:0 | 724 large@0: unpacking 2c531e0992ff: integrity check failed on data/large.i:0 |
725 4 files, 5 changesets, 10 total revisions | 725 checked 5 changesets with 10 changes to 4 files |
726 2 integrity errors encountered! | 726 2 integrity errors encountered! |
727 (first damaged changeset appears to be 0) | 727 (first damaged changeset appears to be 0) |
728 [1] | 728 [1] |
729 | 729 |
730 Updates work after cloning a damaged repo, if the damaged lfs objects aren't in | 730 Updates work after cloning a damaged repo, if the damaged lfs objects aren't in |
757 lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the local lfs store | 757 lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the local lfs store |
758 lfs: adding 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 to the usercache | 758 lfs: adding 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 to the usercache |
759 lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store | 759 lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store |
760 lfs: adding b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c to the usercache | 760 lfs: adding b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c to the usercache |
761 lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store | 761 lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store |
762 4 files, 5 changesets, 10 total revisions | 762 checked 5 changesets with 10 changes to 4 files |
763 | 763 |
764 Verify will not copy/link a corrupted file from the usercache into the local | 764 Verify will not copy/link a corrupted file from the usercache into the local |
765 store, and poison it. (The verify with a good remote now works.) | 765 store, and poison it. (The verify with a good remote now works.) |
766 | 766 |
767 $ rm -r fromcorrupt/.hg/store/lfs/objects/66/100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e | 767 $ rm -r fromcorrupt/.hg/store/lfs/objects/66/100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e |
774 l@1: unpacking 46a2f24864bc: integrity check failed on data/l.i:0 | 774 l@1: unpacking 46a2f24864bc: integrity check failed on data/l.i:0 |
775 lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store | 775 lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store |
776 large@0: unpacking 2c531e0992ff: integrity check failed on data/large.i:0 | 776 large@0: unpacking 2c531e0992ff: integrity check failed on data/large.i:0 |
777 lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store | 777 lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store |
778 lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store | 778 lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store |
779 4 files, 5 changesets, 10 total revisions | 779 checked 5 changesets with 10 changes to 4 files |
780 2 integrity errors encountered! | 780 2 integrity errors encountered! |
781 (first damaged changeset appears to be 0) | 781 (first damaged changeset appears to be 0) |
782 [1] | 782 [1] |
783 $ hg -R fromcorrupt --config lfs.usercache=emptycache verify -v | 783 $ hg -R fromcorrupt --config lfs.usercache=emptycache verify -v |
784 repository uses revlog format 1 | 784 repository uses revlog format 1 |
789 lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the usercache | 789 lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the usercache |
790 lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store | 790 lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store |
791 lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the local lfs store | 791 lfs: found 66100b384bf761271b407d79fc30cdd0554f3b2c5d944836e936d584b88ce88e in the local lfs store |
792 lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store | 792 lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store |
793 lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store | 793 lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store |
794 4 files, 5 changesets, 10 total revisions | 794 checked 5 changesets with 10 changes to 4 files |
795 | 795 |
796 Damaging a file required by the update destination fails the update. | 796 Damaging a file required by the update destination fails the update. |
797 | 797 |
798 $ echo 'damage' >> $TESTTMP/dummy-remote/22/f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b | 798 $ echo 'damage' >> $TESTTMP/dummy-remote/22/f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b |
799 $ hg --config lfs.usercache=emptycache clone -v repo5 fromcorrupt2 | 799 $ hg --config lfs.usercache=emptycache clone -v repo5 fromcorrupt2 |
815 checking manifests | 815 checking manifests |
816 crosschecking files in changesets and manifests | 816 crosschecking files in changesets and manifests |
817 checking files | 817 checking files |
818 l@1: unpacking 46a2f24864bc: integrity check failed on data/l.i:0 | 818 l@1: unpacking 46a2f24864bc: integrity check failed on data/l.i:0 |
819 large@0: unpacking 2c531e0992ff: integrity check failed on data/large.i:0 | 819 large@0: unpacking 2c531e0992ff: integrity check failed on data/large.i:0 |
820 4 files, 5 changesets, 10 total revisions | 820 checked 5 changesets with 10 changes to 4 files |
821 2 integrity errors encountered! | 821 2 integrity errors encountered! |
822 (first damaged changeset appears to be 0) | 822 (first damaged changeset appears to be 0) |
823 [1] | 823 [1] |
824 | 824 |
825 Corrupt local files are not sent upstream. (The alternate dummy remote | 825 Corrupt local files are not sent upstream. (The alternate dummy remote |
846 l@1: unpacking 46a2f24864bc: integrity check failed on data/l.i:0 | 846 l@1: unpacking 46a2f24864bc: integrity check failed on data/l.i:0 |
847 lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store | 847 lfs: found 22f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b in the local lfs store |
848 large@0: unpacking 2c531e0992ff: integrity check failed on data/large.i:0 | 848 large@0: unpacking 2c531e0992ff: integrity check failed on data/large.i:0 |
849 lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store | 849 lfs: found 89b6070915a3d573ff3599d1cda305bc5e38549b15c4847ab034169da66e1ca8 in the local lfs store |
850 lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store | 850 lfs: found b1a6ea88da0017a0e77db139a54618986e9a2489bee24af9fe596de9daac498c in the local lfs store |
851 4 files, 5 changesets, 10 total revisions | 851 checked 5 changesets with 10 changes to 4 files |
852 2 integrity errors encountered! | 852 2 integrity errors encountered! |
853 (first damaged changeset appears to be 0) | 853 (first damaged changeset appears to be 0) |
854 [1] | 854 [1] |
855 | 855 |
856 $ cat $TESTTMP/dummy-remote2/22/f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b | $TESTDIR/f --sha256 | 856 $ cat $TESTTMP/dummy-remote2/22/f66a3fc0b9bf3f012c814303995ec07099b3a9ce02a7af84b5970811074a3b | $TESTDIR/f --sha256 |