comparison tests/test-phabricator.t @ 51631:bf1d26bd5b6a

obsolete: quote the feature name This makes it at least somewhat clearer that hg is talking about some specific feature and not just outdated code.
author Joerg Sonnenberger <joerg@bec.de>
date Mon, 10 Jun 2024 13:45:57 +0200
parents 3e381eb557f3
children
comparison
equal deleted inserted replaced
51630:513597087b89 51631:bf1d26bd5b6a
728 $ echo 'modified' > file2.txt 728 $ echo 'modified' > file2.txt
729 $ hg add file2.txt 729 $ hg add file2.txt
730 $ hg amend --config experimental.evolution=all --config extensions.amend= 730 $ hg amend --config experimental.evolution=all --config extensions.amend=
731 1 new orphan changesets 731 1 new orphan changesets
732 $ hg up 3 732 $ hg up 3
733 obsolete feature not enabled but 1 markers found! 733 "obsolete" feature not enabled but 1 markers found!
734 1 files updated, 0 files merged, 1 files removed, 0 files unresolved 734 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
735 $ hg rebase --config experimental.evolution=all --config extensions.rebase= 735 $ hg rebase --config experimental.evolution=all --config extensions.rebase=
736 note: not rebasing 2:832553266fe8 "two: second commit to review", already in destination as 4:0124e5474c88 tip "two: second commit to review" 736 note: not rebasing 2:832553266fe8 "two: second commit to review", already in destination as 4:0124e5474c88 tip "two: second commit to review"
737 rebasing 3:921f8265efbd "3: a commit with no detailed message" 737 rebasing 3:921f8265efbd "3: a commit with no detailed message"
738 738
739 When commits have changed locally, the local commit list on Phabricator is 739 When commits have changed locally, the local commit list on Phabricator is
740 updated. 740 updated.
741 741
742 $ echo y | hg phabsend --fold --confirm -r 1:: \ 742 $ echo y | hg phabsend --fold --confirm -r 1:: \
743 > --test-vcr "$VCR/phabsend-fold-updated.json" 743 > --test-vcr "$VCR/phabsend-fold-updated.json"
744 obsolete feature not enabled but 2 markers found! 744 "obsolete" feature not enabled but 2 markers found!
745 602c4e738243 mapped to old nodes ['602c4e738243'] 745 602c4e738243 mapped to old nodes ['602c4e738243']
746 0124e5474c88 mapped to old nodes ['832553266fe8'] 746 0124e5474c88 mapped to old nodes ['832553266fe8']
747 e4edb1fe3565 mapped to old nodes ['921f8265efbd'] 747 e4edb1fe3565 mapped to old nodes ['921f8265efbd']
748 D8387 - 1:602c4e738243 "one: first commit to review" 748 D8387 - 1:602c4e738243 "one: first commit to review"
749 D8387 - 4:0124e5474c88 "two: second commit to review" 749 D8387 - 4:0124e5474c88 "two: second commit to review"
750 D8387 - 5:e4edb1fe3565 tip "3: a commit with no detailed message" 750 D8387 - 5:e4edb1fe3565 tip "3: a commit with no detailed message"
751 Send the above changes to https://phab.mercurial-scm.org/ (Y/n)? y 751 Send the above changes to https://phab.mercurial-scm.org/ (Y/n)? y
752 D8387 - updated - 1:602c4e738243 "one: first commit to review" 752 D8387 - updated - 1:602c4e738243 "one: first commit to review"
753 D8387 - updated - 4:0124e5474c88 "two: second commit to review" 753 D8387 - updated - 4:0124e5474c88 "two: second commit to review"
754 D8387 - updated - 5:e4edb1fe3565 tip "3: a commit with no detailed message" 754 D8387 - updated - 5:e4edb1fe3565 tip "3: a commit with no detailed message"
755 obsolete feature not enabled but 2 markers found! (?) 755 "obsolete" feature not enabled but 2 markers found! (?)
756 updating local commit list for D8387 756 updating local commit list for D8387
757 new commits: ['602c4e738243', '0124e5474c88', 'e4edb1fe3565'] 757 new commits: ['602c4e738243', '0124e5474c88', 'e4edb1fe3565']
758 $ hg log -Tcompact 758 $ hg log -Tcompact
759 obsolete feature not enabled but 2 markers found! 759 "obsolete" feature not enabled but 2 markers found!
760 5[tip] e4edb1fe3565 1970-01-01 00:00 +0000 test 760 5[tip] e4edb1fe3565 1970-01-01 00:00 +0000 test
761 3: a commit with no detailed message 761 3: a commit with no detailed message
762 762
763 4:1 0124e5474c88 1970-01-01 00:00 +0000 test 763 4:1 0124e5474c88 1970-01-01 00:00 +0000 test
764 two: second commit to review 764 two: second commit to review
771 771
772 When nothing has changed locally since the last phabsend, the commit list isn't 772 When nothing has changed locally since the last phabsend, the commit list isn't
773 updated, and nothing is changed locally afterward. 773 updated, and nothing is changed locally afterward.
774 774
775 $ hg phabsend --fold -r 1:: --test-vcr "$VCR/phabsend-fold-no-changes.json" 775 $ hg phabsend --fold -r 1:: --test-vcr "$VCR/phabsend-fold-no-changes.json"
776 obsolete feature not enabled but 2 markers found! 776 "obsolete" feature not enabled but 2 markers found!
777 602c4e738243 mapped to old nodes ['602c4e738243'] 777 602c4e738243 mapped to old nodes ['602c4e738243']
778 0124e5474c88 mapped to old nodes ['0124e5474c88'] 778 0124e5474c88 mapped to old nodes ['0124e5474c88']
779 e4edb1fe3565 mapped to old nodes ['e4edb1fe3565'] 779 e4edb1fe3565 mapped to old nodes ['e4edb1fe3565']
780 D8387 - updated - 1:602c4e738243 "one: first commit to review" 780 D8387 - updated - 1:602c4e738243 "one: first commit to review"
781 D8387 - updated - 4:0124e5474c88 "two: second commit to review" 781 D8387 - updated - 4:0124e5474c88 "two: second commit to review"
782 D8387 - updated - 5:e4edb1fe3565 tip "3: a commit with no detailed message" 782 D8387 - updated - 5:e4edb1fe3565 tip "3: a commit with no detailed message"
783 obsolete feature not enabled but 2 markers found! (?) 783 "obsolete" feature not enabled but 2 markers found! (?)
784 local commit list for D8387 is already up-to-date 784 local commit list for D8387 is already up-to-date
785 $ hg log -Tcompact 785 $ hg log -Tcompact
786 obsolete feature not enabled but 2 markers found! 786 "obsolete" feature not enabled but 2 markers found!
787 5[tip] e4edb1fe3565 1970-01-01 00:00 +0000 test 787 5[tip] e4edb1fe3565 1970-01-01 00:00 +0000 test
788 3: a commit with no detailed message 788 3: a commit with no detailed message
789 789
790 4:1 0124e5474c88 1970-01-01 00:00 +0000 test 790 4:1 0124e5474c88 1970-01-01 00:00 +0000 test
791 two: second commit to review 791 two: second commit to review
798 798
799 Fold will accept new revisions at the end... 799 Fold will accept new revisions at the end...
800 800
801 $ echo 'another mod' > file2.txt 801 $ echo 'another mod' > file2.txt
802 $ hg ci -m 'four: extend the fold range' 802 $ hg ci -m 'four: extend the fold range'
803 obsolete feature not enabled but 2 markers found! 803 "obsolete" feature not enabled but 2 markers found!
804 $ hg phabsend --fold -r 1:: --test-vcr "$VCR/phabsend-fold-extend-end.json" \ 804 $ hg phabsend --fold -r 1:: --test-vcr "$VCR/phabsend-fold-extend-end.json" \
805 > --config experimental.evolution=all 805 > --config experimental.evolution=all
806 602c4e738243 mapped to old nodes ['602c4e738243'] 806 602c4e738243 mapped to old nodes ['602c4e738243']
807 0124e5474c88 mapped to old nodes ['0124e5474c88'] 807 0124e5474c88 mapped to old nodes ['0124e5474c88']
808 e4edb1fe3565 mapped to old nodes ['e4edb1fe3565'] 808 e4edb1fe3565 mapped to old nodes ['e4edb1fe3565']
815 $ hg log -r . -T '{desc}\n' 815 $ hg log -r . -T '{desc}\n'
816 four: extend the fold range 816 four: extend the fold range
817 817
818 Differential Revision: https://phab.mercurial-scm.org/D8387 818 Differential Revision: https://phab.mercurial-scm.org/D8387
819 $ hg log -T'{rev} {if(phabreview, "{phabreview.url} {phabreview.id}")}\n' -r 1:: 819 $ hg log -T'{rev} {if(phabreview, "{phabreview.url} {phabreview.id}")}\n' -r 1::
820 obsolete feature not enabled but 3 markers found! 820 "obsolete" feature not enabled but 3 markers found!
821 1 https://phab.mercurial-scm.org/D8387 D8387 821 1 https://phab.mercurial-scm.org/D8387 D8387
822 4 https://phab.mercurial-scm.org/D8387 D8387 822 4 https://phab.mercurial-scm.org/D8387 D8387
823 5 https://phab.mercurial-scm.org/D8387 D8387 823 5 https://phab.mercurial-scm.org/D8387 D8387
824 7 https://phab.mercurial-scm.org/D8387 D8387 824 7 https://phab.mercurial-scm.org/D8387 D8387
825 825
844 D8388 - updated - 7:51a04fea8707 tip "four: extend the fold range" 844 D8388 - updated - 7:51a04fea8707 tip "four: extend the fold range"
845 updating local commit list for D8388 845 updating local commit list for D8388
846 new commits: ['15e9b14b4b4c', '6320b7d714cf', '3ee132d41dbc', '30682b960804', 'ac7db67f0991'] 846 new commits: ['15e9b14b4b4c', '6320b7d714cf', '3ee132d41dbc', '30682b960804', 'ac7db67f0991']
847 847
848 $ hg log -T '{rev}:{node|short}\n{indent(desc, " ")}\n' 848 $ hg log -T '{rev}:{node|short}\n{indent(desc, " ")}\n'
849 obsolete feature not enabled but 8 markers found! 849 "obsolete" feature not enabled but 8 markers found!
850 12:ac7db67f0991 850 12:ac7db67f0991
851 four: extend the fold range 851 four: extend the fold range
852 852
853 Differential Revision: https://phab.mercurial-scm.org/D8388 853 Differential Revision: https://phab.mercurial-scm.org/D8388
854 11:30682b960804 854 11:30682b960804
960 D8388 - updated - 16:e919cdf3d4fe tip "four: extend the fold range" 960 D8388 - updated - 16:e919cdf3d4fe tip "four: extend the fold range"
961 updating local commit list for D8388 961 updating local commit list for D8388
962 new commits: ['15e9b14b4b4c', '6320b7d714cf', '3ee132d41dbc', '30682b960804', 'e919cdf3d4fe'] 962 new commits: ['15e9b14b4b4c', '6320b7d714cf', '3ee132d41dbc', '30682b960804', 'e919cdf3d4fe']
963 963
964 $ hg log -r tip -v 964 $ hg log -r tip -v
965 obsolete feature not enabled but 12 markers found! 965 "obsolete" feature not enabled but 12 markers found!
966 changeset: 16:e919cdf3d4fe 966 changeset: 16:e919cdf3d4fe
967 tag: tip 967 tag: tip
968 parent: 11:30682b960804 968 parent: 11:30682b960804
969 user: test 969 user: test
970 date: Thu Jan 01 00:00:00 1970 +0000 970 date: Thu Jan 01 00:00:00 1970 +0000