Mercurial > evolve
comparison tests/test-obsolete.t @ 5437:21ea3de27eb5 stable
test-obsolete: remove revnum usage for a good share of the test
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 22 Jul 2020 12:28:32 +0200 |
parents | 920b89d51430 |
children | 2aba2e371162 |
comparison
equal
deleted
inserted
replaced
5436:920b89d51430 | 5437:21ea3de27eb5 |
---|---|
532 | 532 |
533 $ hg rebase -b '3' -d 4 --traceback --config experimental.rebaseskipobsolete=0 | 533 $ hg rebase -b '3' -d 4 --traceback --config experimental.rebaseskipobsolete=0 |
534 rebasing 3:0d3f46688ccc "add obsol_c" | 534 rebasing 3:0d3f46688ccc "add obsol_c" |
535 rebasing 8:159dfc9fa5d3 "add obsol_d''" | 535 rebasing 8:159dfc9fa5d3 "add obsol_d''" |
536 2 new content-divergent changesets | 536 2 new content-divergent changesets |
537 $ hg --hidden log -q -r 'successors(3)' | 537 $ hg --hidden log -q -r 'successors(min(desc("re:^add obsol_c$")))' |
538 4:725c380fe99b | 538 4:725c380fe99b |
539 10:2033b4e49474 | 539 10:2033b4e49474 |
540 $ hg up tip | 540 $ hg up tip |
541 ? files updated, 0 files merged, 0 files removed, 0 files unresolved (glob) | 541 ? files updated, 0 files merged, 0 files removed, 0 files unresolved (glob) |
542 $ hg log -G --template='{rev} - {node|short} {desc}\n' | 542 $ hg log -G --template='{rev} - {node|short} {desc}\n' |
562 adding file changes | 562 adding file changes |
563 added 2 changesets with 1 changes to [12] files (re) | 563 added 2 changesets with 1 changes to [12] files (re) |
564 3 new obsolescence markers | 564 3 new obsolescence markers |
565 obsoleted 1 changesets | 565 obsoleted 1 changesets |
566 2 new content-divergent changesets | 566 2 new content-divergent changesets |
567 $ hg up -q 10 | 567 $ hg up -q 'desc("re:^add obsol_c$")' |
568 $ mkcommit "obsol_d'''" | 568 $ mkcommit "obsol_d'''" |
569 created new head | 569 created new head |
570 $ hg debugobsolete `getid 11` `getid 12` | 570 $ hg debugobsolete `getid 'max(desc("re:^add obsol_d'\'\''$"))'` `getid 'desc("re:^add obsol_d'\'\'\''$")'` |
571 1 new obsolescence markers | 571 1 new obsolescence markers |
572 obsoleted 1 changesets | 572 obsoleted 1 changesets |
573 $ hg push ../other-new --traceback | 573 $ hg push ../other-new --traceback |
574 pushing to ../other-new | 574 pushing to ../other-new |
575 searching for changes | 575 searching for changes |
583 | 583 |
584 check phase divergence detection | 584 check phase divergence detection |
585 (make an obsolete changeset public) | 585 (make an obsolete changeset public) |
586 | 586 |
587 $ cd local | 587 $ cd local |
588 $ hg phase --hidden --public 11 | 588 $ hg phase --hidden --public 'max(desc("re:^add obsol_d'\'\''$"))' |
589 1 new phase-divergent changesets | 589 1 new phase-divergent changesets |
590 $ hg log -G --template='{rev} - ({phase}) {node|short} {desc}\n' | 590 $ hg log -G --template='{rev} - ({phase}) {node|short} {desc}\n' |
591 @ 12 - (draft) 6db5e282cb91 add obsol_d''' | 591 @ 12 - (draft) 6db5e282cb91 add obsol_d''' |
592 | | 592 | |
593 | o 11 - (public) 9468a5f5d8b2 add obsol_d'' | 593 | o 11 - (public) 9468a5f5d8b2 add obsol_d'' |
679 9468a5f5d8b2c5d91e17474e95ae4791e9718fdf 6db5e282cb91df5c43ff1f1287c119ff83230d42 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 679 9468a5f5d8b2c5d91e17474e95ae4791e9718fdf 6db5e282cb91df5c43ff1f1287c119ff83230d42 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
680 0b1b6dd009c037985363e2290a0b579819f659db 705ab2a6b72e2cd86edb799ebe15f2695f86143e 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} | 680 0b1b6dd009c037985363e2290a0b579819f659db 705ab2a6b72e2cd86edb799ebe15f2695f86143e 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} |
681 | 681 |
682 Check divergence detection (note: multiple successors is sorted by changeset hash) | 682 Check divergence detection (note: multiple successors is sorted by changeset hash) |
683 | 683 |
684 $ hg up 9468a5f5d8b2 # add obsol_d'' | 684 $ hg up 'max(desc("re:^add obsol_d'\'\''$"))' # add obsol_d'' |
685 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | 685 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
686 $ mkcommit "obsolet_conflicting_d" | 686 $ mkcommit "obsolet_conflicting_d" |
687 $ hg summary | 687 $ hg summary |
688 parent: 15:50f11e5e3a63 tip | 688 parent: 15:50f11e5e3a63 tip |
689 add obsolet_conflicting_d | 689 add obsolet_conflicting_d |
690 branch: default | 690 branch: default |
691 commit: (clean) | 691 commit: (clean) |
692 update: (2|9|11) new changesets, (3|9|10) branch heads \(merge\) (re) | 692 update: (2|9|11) new changesets, (3|9|10) branch heads \(merge\) (re) |
693 phases: 3 draft | 693 phases: 3 draft |
694 phase-divergent: 1 changesets | 694 phase-divergent: 1 changesets |
695 $ hg debugobsolete `getid a7a6f2b5d8a5` `getid 50f11e5e3a63` | 695 $ hg debugobsolete `getid 'desc("re:^add d$")'` `getid 'desc("re:^add obsolet_conflicting_d$")'` |
696 1 new obsolescence markers | 696 1 new obsolescence markers |
697 2 new content-divergent changesets | 697 2 new content-divergent changesets |
698 $ hg log -r 'contentdivergent()' | 698 $ hg log -r 'contentdivergent()' |
699 changeset: 12:6db5e282cb91 | 699 changeset: 12:6db5e282cb91 |
700 parent: 10:2033b4e49474 | 700 parent: 10:2033b4e49474 |
710 date: Thu Jan 01 00:00:00 1970 +0000 | 710 date: Thu Jan 01 00:00:00 1970 +0000 |
711 instability: content-divergent | 711 instability: content-divergent |
712 summary: add obsolet_conflicting_d | 712 summary: add obsolet_conflicting_d |
713 | 713 |
714 | 714 |
715 $ hg up --hidden 3 -q | 715 $ hg up --hidden 'min(desc("re:^add obsol_c$"))' -q |
716 updated to hidden changeset 0d3f46688ccc | 716 updated to hidden changeset 0d3f46688ccc |
717 (hidden revision '0d3f46688ccc' has diverged) | 717 (hidden revision '0d3f46688ccc' has diverged) |
718 working directory parent is obsolete! (0d3f46688ccc) | 718 working directory parent is obsolete! (0d3f46688ccc) |
719 $ hg evolve | 719 $ hg evolve |
720 parent is obsolete with multiple successors: | 720 parent is obsolete with multiple successors: |
734 x 4538525df7e2 (2) add c | 734 x 4538525df7e2 (2) add c |
735 | 735 |
736 | 736 |
737 Check import reports new unstable changeset: | 737 Check import reports new unstable changeset: |
738 | 738 |
739 $ hg up --hidden 2 | 739 $ hg up --hidden 'desc("re:^add c$")' |
740 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | 740 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
741 updated to hidden changeset 4538525df7e2 | 741 updated to hidden changeset 4538525df7e2 |
742 (hidden revision '4538525df7e2' has diverged) | 742 (hidden revision '4538525df7e2' has diverged) |
743 working directory parent is obsolete! (4538525df7e2) | 743 working directory parent is obsolete! (4538525df7e2) |
744 (4538525df7e2 has diverged, use 'hg evolve --list --content-divergent' to resolve the issue) | 744 (4538525df7e2 has diverged, use 'hg evolve --list --content-divergent' to resolve the issue) |
864 summary: add a | 864 summary: add a |
865 | 865 |
866 | 866 |
867 Simple rewrite | 867 Simple rewrite |
868 | 868 |
869 $ hg --hidden debugobsolete --rev 3 | 869 $ hg --hidden debugobsolete --rev 'min(desc("re:^add obsol_c$"))' |
870 4538525df7e2b9f09423636c61ef63a4cb872a2d 0d3f46688ccc6e756c7e96cf64c391c411309597 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 870 4538525df7e2b9f09423636c61ef63a4cb872a2d 0d3f46688ccc6e756c7e96cf64c391c411309597 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
871 | 871 |
872 simple rewrite with a prune attached to it | 872 simple rewrite with a prune attached to it |
873 | 873 |
874 $ hg debugobsolete --rev 15 | 874 $ hg debugobsolete --rev 'desc("re:^add obsolet_conflicting_d$")' |
875 a7a6f2b5d8a54b81bc7aa2fba2934ad6d700a79e 50f11e5e3a63806e678c734e525502f522d37e38 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 875 a7a6f2b5d8a54b81bc7aa2fba2934ad6d700a79e 50f11e5e3a63806e678c734e525502f522d37e38 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
876 | 876 |
877 Transitive rewrite | 877 Transitive rewrite |
878 | 878 |
879 $ hg --hidden debugobsolete --rev 8 | 879 $ hg --hidden debugobsolete --rev 'min(desc("re:^add obsol_d'\'\''$"))' |
880 909a0fb57e5d909f353d89e394ffd7e0890fec88 159dfc9fa5d334d7e03a0aecfc7f7ab4c3431fea 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 880 909a0fb57e5d909f353d89e394ffd7e0890fec88 159dfc9fa5d334d7e03a0aecfc7f7ab4c3431fea 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
881 95de7fc6918dea4c9c8d5382f50649794b474c4a 909a0fb57e5d909f353d89e394ffd7e0890fec88 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 881 95de7fc6918dea4c9c8d5382f50649794b474c4a 909a0fb57e5d909f353d89e394ffd7e0890fec88 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
882 a7a6f2b5d8a54b81bc7aa2fba2934ad6d700a79e 95de7fc6918dea4c9c8d5382f50649794b474c4a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} | 882 a7a6f2b5d8a54b81bc7aa2fba2934ad6d700a79e 95de7fc6918dea4c9c8d5382f50649794b474c4a 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
883 | 883 |