Mercurial > hg
comparison tests/test-treemanifest.t @ 50623:99dfe806d2f3
test-treemanifest: cleanup the test to more easily show server side error
This made my life easier debugging.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 29 May 2023 12:15:10 +0200 |
parents | c84844cd523a |
children | c814101560d9 |
comparison
equal
deleted
inserted
replaced
50621:822320591c46 | 50623:99dfe806d2f3 |
---|---|
209 $ hg merge 1 | 209 $ hg merge 1 |
210 3 files updated, 0 files merged, 0 files removed, 0 files unresolved | 210 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
211 (branch merge, don't forget to commit) | 211 (branch merge, don't forget to commit) |
212 $ hg ci -m 'merge of flat manifests to new flat manifest' | 212 $ hg ci -m 'merge of flat manifests to new flat manifest' |
213 | 213 |
214 $ hg serve -p $HGPORT -d --pid-file=hg.pid --errorlog=errors.log | 214 $ cd .. |
215 $ cat hg.pid >> $DAEMON_PIDS | 215 $ hg -R repo-flat serve -p $HGPORT -d \ |
216 > --pid-file=port-0-hg.pid \ | |
217 > --errorlog=port-0-errors.log | |
218 $ cat port-0-hg.pid >> $DAEMON_PIDS | |
216 | 219 |
217 Create clone with tree manifests enabled | 220 Create clone with tree manifests enabled |
218 | 221 |
219 $ cd .. | |
220 $ hg clone --config experimental.treemanifest=1 \ | 222 $ hg clone --config experimental.treemanifest=1 \ |
221 > http://localhost:$HGPORT repo-mixed -r 1 | 223 > http://localhost:$HGPORT repo-mixed -r 1 |
222 adding changesets | 224 adding changesets |
223 adding manifests | 225 adding manifests |
224 adding file changes | 226 adding file changes |
225 added 2 changesets with 14 changes to 11 files | 227 added 2 changesets with 14 changes to 11 files |
226 new changesets 5b02a3e8db7e:581ef6037d8b | 228 new changesets 5b02a3e8db7e:581ef6037d8b |
227 updating to branch default | 229 updating to branch default |
228 11 files updated, 0 files merged, 0 files removed, 0 files unresolved | 230 11 files updated, 0 files merged, 0 files removed, 0 files unresolved |
231 $ cat port-0-errors.log | |
229 $ cd repo-mixed | 232 $ cd repo-mixed |
230 $ test -d .hg/store/meta | 233 $ test -d .hg/store/meta |
231 [1] | 234 [1] |
232 $ hg debugrequires | grep treemanifest | 235 $ hg debugrequires | grep treemanifest |
233 treemanifest | 236 treemanifest |
652 (first damaged changeset appears to be 2) | 655 (first damaged changeset appears to be 2) |
653 [1] | 656 [1] |
654 $ cp -R .hg/store-newcopy/. .hg/store | 657 $ cp -R .hg/store-newcopy/. .hg/store |
655 | 658 |
656 Test cloning a treemanifest repo over http. | 659 Test cloning a treemanifest repo over http. |
657 $ hg serve -p $HGPORT -d --pid-file=hg.pid --errorlog=errors.log | |
658 $ cat hg.pid >> $DAEMON_PIDS | |
659 $ cd .. | 660 $ cd .. |
661 $ hg -R deeprepo serve -p $HGPORT -d \ | |
662 > --pid-file=port-0-hg.pid \ | |
663 > --errorlog=port-0-errors.log | |
664 $ cat port-0-hg.pid >> $DAEMON_PIDS | |
665 | |
660 We can clone even with the knob turned off and we'll get a treemanifest repo. | 666 We can clone even with the knob turned off and we'll get a treemanifest repo. |
661 $ hg clone --config experimental.treemanifest=False \ | 667 $ hg clone --config experimental.treemanifest=False \ |
662 > --config experimental.changegroup3=True \ | 668 > --config experimental.changegroup3=True \ |
663 > http://localhost:$HGPORT deepclone | 669 > http://localhost:$HGPORT deepclone |
664 requesting all changes | 670 requesting all changes |
668 added 4 changesets with 18 changes to 8 files | 674 added 4 changesets with 18 changes to 8 files |
669 new changesets 775704be6f52:523e5c631710 | 675 new changesets 775704be6f52:523e5c631710 |
670 updating to branch default | 676 updating to branch default |
671 8 files updated, 0 files merged, 0 files removed, 0 files unresolved | 677 8 files updated, 0 files merged, 0 files removed, 0 files unresolved |
672 No server errors. | 678 No server errors. |
673 $ cat deeprepo/errors.log | 679 $ cat port-0-errors.log |
680 | |
674 requires got updated to include treemanifest | 681 requires got updated to include treemanifest |
675 $ hg debugrequires -R deepclone | grep treemanifest | 682 $ hg debugrequires -R deepclone | grep treemanifest |
676 treemanifest | 683 treemanifest |
677 Tree manifest revlogs exist. | 684 Tree manifest revlogs exist. |
678 $ find deepclone/.hg/store/meta | sort | 685 $ find deepclone/.hg/store/meta | sort |
711 adding file changes | 718 adding file changes |
712 added 4 changesets with 18 changes to 8 files | 719 added 4 changesets with 18 changes to 8 files |
713 new changesets 775704be6f52:523e5c631710 | 720 new changesets 775704be6f52:523e5c631710 |
714 updating to branch default | 721 updating to branch default |
715 8 files updated, 0 files merged, 0 files removed, 0 files unresolved | 722 8 files updated, 0 files merged, 0 files removed, 0 files unresolved |
716 $ cd deeprepo-basicstore | 723 $ hg -R deeprepo-basicstore debugrequires | grep store |
717 $ hg debugrequires | grep store | |
718 [1] | 724 [1] |
719 $ hg serve -p $HGPORT1 -d --pid-file=hg.pid --errorlog=errors.log | 725 $ hg -R deeprepo-basicstore serve -p $HGPORT1 -d \ |
720 $ cat hg.pid >> $DAEMON_PIDS | 726 > --pid-file=port-1-hg.pid \ |
721 $ cd .. | 727 > --errorlog=port-1-errors.log |
728 $ cat port-1-hg.pid >> $DAEMON_PIDS | |
729 | |
722 $ hg clone --config format.usefncache=False \ | 730 $ hg clone --config format.usefncache=False \ |
723 > --config experimental.changegroup3=True \ | 731 > --config experimental.changegroup3=True \ |
724 > http://localhost:$HGPORT deeprepo-encodedstore | 732 > http://localhost:$HGPORT deeprepo-encodedstore |
725 requesting all changes | 733 requesting all changes |
726 adding changesets | 734 adding changesets |
728 adding file changes | 736 adding file changes |
729 added 4 changesets with 18 changes to 8 files | 737 added 4 changesets with 18 changes to 8 files |
730 new changesets 775704be6f52:523e5c631710 | 738 new changesets 775704be6f52:523e5c631710 |
731 updating to branch default | 739 updating to branch default |
732 8 files updated, 0 files merged, 0 files removed, 0 files unresolved | 740 8 files updated, 0 files merged, 0 files removed, 0 files unresolved |
733 $ cd deeprepo-encodedstore | 741 $ hg -R deeprepo-encodedstore debugrequires | grep fncache |
734 $ hg debugrequires | grep fncache | |
735 [1] | 742 [1] |
736 $ hg serve -p $HGPORT2 -d --pid-file=hg.pid --errorlog=errors.log | 743 $ hg -R deeprepo-encodedstore serve -p $HGPORT2 -d \ |
737 $ cat hg.pid >> $DAEMON_PIDS | 744 > --pid-file=port-2-hg.pid \ |
738 $ cd .. | 745 > --errorlog=port-2-errors.log |
746 $ cat port-2-hg.pid >> $DAEMON_PIDS | |
739 | 747 |
740 Local clone with basicstore | 748 Local clone with basicstore |
741 $ hg clone -U deeprepo-basicstore local-clone-basicstore | 749 $ hg clone -U deeprepo-basicstore local-clone-basicstore |
742 $ hg -R local-clone-basicstore verify -q | 750 $ hg -R local-clone-basicstore verify -q |
743 | 751 |
754 > http://localhost:$HGPORT1 stream-clone-basicstore | 762 > http://localhost:$HGPORT1 stream-clone-basicstore |
755 streaming all changes | 763 streaming all changes |
756 28 files to transfer, * of data (glob) | 764 28 files to transfer, * of data (glob) |
757 transferred * in * seconds (*) (glob) | 765 transferred * in * seconds (*) (glob) |
758 $ hg -R stream-clone-basicstore verify -q | 766 $ hg -R stream-clone-basicstore verify -q |
767 $ cat port-1-errors.log | |
759 | 768 |
760 Stream clone with encodedstore | 769 Stream clone with encodedstore |
761 $ hg clone --config experimental.changegroup3=True --stream -U \ | 770 $ hg clone --config experimental.changegroup3=True --stream -U \ |
762 > http://localhost:$HGPORT2 stream-clone-encodedstore | 771 > http://localhost:$HGPORT2 stream-clone-encodedstore |
763 streaming all changes | 772 streaming all changes |
764 28 files to transfer, * of data (glob) | 773 28 files to transfer, * of data (glob) |
765 transferred * in * seconds (*) (glob) | 774 transferred * in * seconds (*) (glob) |
766 $ hg -R stream-clone-encodedstore verify -q | 775 $ hg -R stream-clone-encodedstore verify -q |
776 $ cat port-2-errors.log | |
767 | 777 |
768 Stream clone with fncachestore | 778 Stream clone with fncachestore |
769 $ hg clone --config experimental.changegroup3=True --stream -U \ | 779 $ hg clone --config experimental.changegroup3=True --stream -U \ |
770 > http://localhost:$HGPORT stream-clone-fncachestore | 780 > http://localhost:$HGPORT stream-clone-fncachestore |
771 streaming all changes | 781 streaming all changes |
772 22 files to transfer, * of data (glob) | 782 22 files to transfer, * of data (glob) |
773 transferred * in * seconds (*) (glob) | 783 transferred * in * seconds (*) (glob) |
774 $ hg -R stream-clone-fncachestore verify -q | 784 $ hg -R stream-clone-fncachestore verify -q |
785 $ cat port-0-errors.log | |
775 | 786 |
776 Packed bundle | 787 Packed bundle |
777 $ hg -R deeprepo debugcreatestreamclonebundle repo-packed.hg | 788 $ hg -R deeprepo debugcreatestreamclonebundle repo-packed.hg |
778 writing 5330 bytes for 18 files (no-zstd !) | 789 writing 5330 bytes for 18 files (no-zstd !) |
779 writing 5400 bytes for 18 files (zstd !) | 790 writing 5400 bytes for 18 files (zstd !) |