comparison tests/test-topic.t @ 5969:f8ab6ad1ffc0

tests: drop 3.7 compatibility for log -G missing parent edge
author Anton Shestakov <av6@dwimlabs.net>
date Sat, 19 Jun 2021 22:33:38 +0300
parents 87006dcf2bb7
children e97fbded40a5
comparison
equal deleted inserted replaced
5968:20998c86dde5 5969:f8ab6ad1ffc0
3 $ hg init pinky 3 $ hg init pinky
4 $ cd pinky 4 $ cd pinky
5 $ cat <<EOF >> .hg/hgrc 5 $ cat <<EOF >> .hg/hgrc
6 > [phases] 6 > [phases]
7 > publish=false 7 > publish=false
8 > EOF
9 $ cat <<EOF >> $HGRCPATH
10 > [experimental]
11 > # disable the new graph style until we drop 3.7 support
12 > graphstyle.missing = |
13 > EOF 8 > EOF
14 9
15 $ hg help -e topic 10 $ hg help -e topic
16 topic extension - support for topic branches 11 topic extension - support for topic branches
17 12
520 | date: Thu Jan 01 00:00:00 1970 +0000 515 | date: Thu Jan 01 00:00:00 1970 +0000
521 | summary: what is narf, pinky? 516 | summary: what is narf, pinky?
522 | 517 |
523 o changeset: 4:fb147b0b417c 518 o changeset: 4:fb147b0b417c
524 | user: test 519 | user: test
525 | date: Thu Jan 01 00:00:00 1970 +0000 520 ~ date: Thu Jan 01 00:00:00 1970 +0000
526 | summary: start on narf 521 summary: start on narf
527 | 522
528 523
529 $ hg push -f ../pinky -r query 524 $ hg push -f ../pinky -r query
530 pushing to ../pinky 525 pushing to ../pinky
531 searching for changes 526 searching for changes
532 adding changesets 527 adding changesets
550 | date: Thu Jan 01 00:00:00 1970 +0000 545 | date: Thu Jan 01 00:00:00 1970 +0000
551 | summary: narf! 546 | summary: narf!
552 | 547 |
553 | o changeset: 5:0469d521db49 548 | o changeset: 5:0469d521db49
554 | | topic: fran 549 | | topic: fran
555 | | parent: 3:a53952faf762 550 | ~ parent: 3:a53952faf762
556 | | user: test 551 | user: test
557 | | date: Thu Jan 01 00:00:00 1970 +0000
558 | | summary: start on fran
559 | |
560 o | changeset: 4:fb147b0b417c
561 |/ user: test
562 | date: Thu Jan 01 00:00:00 1970 +0000 552 | date: Thu Jan 01 00:00:00 1970 +0000
563 | summary: start on narf 553 | summary: start on fran
564 | 554 |
555 o changeset: 4:fb147b0b417c
556 | user: test
557 ~ date: Thu Jan 01 00:00:00 1970 +0000
558 summary: start on narf
559
565 560
566 $ hg topics 561 $ hg topics
567 * query (1 changesets) 562 * query (1 changesets)
568 $ cd ../pinky 563 $ cd ../pinky
569 $ hg co query 564 $ hg co query
631 | date: Thu Jan 01 00:00:00 1970 +0000 626 | date: Thu Jan 01 00:00:00 1970 +0000
632 | summary: narf! 627 | summary: narf!
633 | 628 |
634 | o changeset: 5:0469d521db49 629 | o changeset: 5:0469d521db49
635 | | topic: fran 630 | | topic: fran
636 | | parent: 3:a53952faf762 631 | ~ parent: 3:a53952faf762
637 | | user: test 632 | user: test
638 | | date: Thu Jan 01 00:00:00 1970 +0000
639 | | summary: start on fran
640 | |
641 o | changeset: 4:fb147b0b417c
642 |/ user: test
643 | date: Thu Jan 01 00:00:00 1970 +0000 633 | date: Thu Jan 01 00:00:00 1970 +0000
644 | summary: start on narf 634 | summary: start on fran
645 | 635 |
636 o changeset: 4:fb147b0b417c
637 | user: test
638 ~ date: Thu Jan 01 00:00:00 1970 +0000
639 summary: start on narf
640
646 641
647 $ cd ../brain 642 $ cd ../brain
648 $ hg topics 643 $ hg topics
649 * query (1 changesets) 644 * query (1 changesets)
650 $ hg pull ../pinky -r narf 645 $ hg pull ../pinky -r narf
680 fran (1 changesets) 675 fran (1 changesets)
681 * query (0 changesets) 676 * query (0 changesets)
682 $ hg log -Gr 'draft()' 677 $ hg log -Gr 'draft()'
683 o changeset: 9:0469d521db49 678 o changeset: 9:0469d521db49
684 | tag: tip 679 | tag: tip
685 | topic: fran 680 ~ topic: fran
686 | parent: 3:a53952faf762 681 parent: 3:a53952faf762
687 | user: test 682 user: test
688 | date: Thu Jan 01 00:00:00 1970 +0000 683 date: Thu Jan 01 00:00:00 1970 +0000
689 | summary: start on fran 684 summary: start on fran
690 | 685
691 686
692 query is not an open topic, so when we clear the current topic it'll 687 query is not an open topic, so when we clear the current topic it'll
693 fade out: 688 fade out:
694 689
695 $ hg topics --clear 690 $ hg topics --clear
699 694
700 Topic revset 695 Topic revset
701 $ hg log -r 'topic()' -G 696 $ hg log -r 'topic()' -G
702 o changeset: 9:0469d521db49 697 o changeset: 9:0469d521db49
703 | tag: tip 698 | tag: tip
704 | topic: fran 699 ~ topic: fran
705 | parent: 3:a53952faf762 700 parent: 3:a53952faf762
706 | user: test 701 user: test
707 | date: Thu Jan 01 00:00:00 1970 +0000 702 date: Thu Jan 01 00:00:00 1970 +0000
708 | summary: start on fran 703 summary: start on fran
709 | 704
710 $ hg log -r 'not topic()' -G 705 $ hg log -r 'not topic()' -G
711 o changeset: 8:ae074045b7a7 706 o changeset: 8:ae074045b7a7
712 |\ parent: 7:54c943c1c167 707 |\ parent: 7:54c943c1c167
713 | | parent: 6:7c34953036d6 708 | | parent: 6:7c34953036d6
714 | | user: test 709 | | user: test
761 $ hg log -r 'topic("narf")' -G 756 $ hg log -r 'topic("narf")' -G
762 This regexp should match the topic `fran`: 757 This regexp should match the topic `fran`:
763 $ hg log -r 'topic("re:.ra.")' -G 758 $ hg log -r 'topic("re:.ra.")' -G
764 o changeset: 9:0469d521db49 759 o changeset: 9:0469d521db49
765 | tag: tip 760 | tag: tip
766 | topic: fran 761 ~ topic: fran
767 | parent: 3:a53952faf762 762 parent: 3:a53952faf762
768 | user: test 763 user: test
769 | date: Thu Jan 01 00:00:00 1970 +0000 764 date: Thu Jan 01 00:00:00 1970 +0000
770 | summary: start on fran 765 summary: start on fran
771 | 766
772 Exact match on fran: 767 Exact match on fran:
773 $ hg log -r 'topic(fran)' -G 768 $ hg log -r 'topic(fran)' -G
774 o changeset: 9:0469d521db49 769 o changeset: 9:0469d521db49
775 | tag: tip 770 | tag: tip
776 | topic: fran 771 ~ topic: fran
777 | parent: 3:a53952faf762 772 parent: 3:a53952faf762
778 | user: test 773 user: test
779 | date: Thu Jan 01 00:00:00 1970 +0000 774 date: Thu Jan 01 00:00:00 1970 +0000
780 | summary: start on fran 775 summary: start on fran
781 | 776
782 777
783 Match current topic: 778 Match current topic:
784 $ hg topic 779 $ hg topic
785 fran (1 changesets) 780 fran (1 changesets)
786 $ hg log -r 'topic(.)' 781 $ hg log -r 'topic(.)'
849 | date: Thu Jan 01 00:00:00 1970 +0000 844 | date: Thu Jan 01 00:00:00 1970 +0000
850 | summary: fran? 845 | summary: fran?
851 | 846 |
852 | o changeset: 10:de75ec1bdbe8 847 | o changeset: 10:de75ec1bdbe8
853 | | parent: 8:ae074045b7a7 848 | | parent: 8:ae074045b7a7
854 | | user: test 849 | ~ user: test
855 | | date: Thu Jan 01 00:00:00 1970 +0000 850 | date: Thu Jan 01 00:00:00 1970 +0000
856 | | summary: non-topic 851 | summary: non-topic
857 | | 852 |
858 o | changeset: 9:0469d521db49 853 o changeset: 9:0469d521db49
859 | | topic: fran 854 | topic: fran
860 | | parent: 3:a53952faf762 855 ~ parent: 3:a53952faf762
861 | | user: test 856 user: test
862 | | date: Thu Jan 01 00:00:00 1970 +0000 857 date: Thu Jan 01 00:00:00 1970 +0000
863 | | summary: start on fran 858 summary: start on fran
864 | | 859
865 860
866 $ hg topics 861 $ hg topics
867 fran (1 changesets) 862 fran (1 changesets)
868 863
869 Testing for updating to s0 864 Testing for updating to s0