comparison tests/test-obsolete.t @ 816:03587920dfd9

evolve: add relevant marker exchange machinery This is going to be needed for obsolescence marker exchange.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 27 Feb 2014 18:30:55 -0800
parents b96d51a357bd
children c2bf0eb727f1
comparison
equal deleted inserted replaced
815:916bebf91c41 816:03587920dfd9
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 working directory parent is obsolete! 686 working directory parent is obsolete!
687 $ hg export 9468a5f5d8b2 | hg import - 687 $ hg export 9468a5f5d8b2 | hg import -
688 applying patch from stdin 688 applying patch from stdin
689 1 new unstable changesets 689 1 new unstable changesets
690
691
692 Relevant marker computation
693 ==============================
694
695 $ hg log -G --hidden
696 @ changeset: 17:a5f7a21fe7bc
697 | tag: tip
698 | parent: 2:4538525df7e2
699 | user: test
700 | date: Thu Jan 01 00:00:00 1970 +0000
701 | summary: add obsol_d''
702 |
703 | o changeset: 16:50f11e5e3a63
704 | | parent: 11:9468a5f5d8b2
705 | | user: test
706 | | date: Thu Jan 01 00:00:00 1970 +0000
707 | | summary: add obsolet_conflicting_d
708 | |
709 | | o changeset: 15:705ab2a6b72e
710 | | | parent: 10:2033b4e49474
711 | | | user: test
712 | | | date: Thu Jan 01 00:00:00 1970 +0000
713 | | | summary: add f
714 | | |
715 | | | x changeset: 14:33d458d86621
716 | | | | user: test
717 | | | | date: Thu Jan 01 00:00:00 1970 +0000
718 | | | | summary: temporary amend commit for 0b1b6dd009c0
719 | | | |
720 | | | x changeset: 13:0b1b6dd009c0
721 | | |/ parent: 10:2033b4e49474
722 | | | user: test
723 | | | date: Thu Jan 01 00:00:00 1970 +0000
724 | | | summary: add f
725 | | |
726 | | | o changeset: 12:6db5e282cb91
727 | | |/ parent: 10:2033b4e49474
728 | | | user: test
729 | | | date: Thu Jan 01 00:00:00 1970 +0000
730 | | | summary: add obsol_d'''
731 | | |
732 | o | changeset: 11:9468a5f5d8b2
733 | |/ user: test
734 | | date: Thu Jan 01 00:00:00 1970 +0000
735 | | summary: add obsol_d''
736 | |
737 | o changeset: 10:2033b4e49474
738 | | parent: 4:725c380fe99b
739 | | user: test
740 | | date: Thu Jan 01 00:00:00 1970 +0000
741 | | summary: add obsol_c
742 | |
743 | | x changeset: 9:83b5778897ad
744 | | parent: -1:000000000000
745 | | user: test
746 | | date: Thu Jan 01 00:00:00 1970 +0000
747 | | summary: add toto
748 | |
749 | | x changeset: 8:159dfc9fa5d3
750 | | | parent: 3:0d3f46688ccc
751 | | | user: test
752 | | | date: Thu Jan 01 00:00:00 1970 +0000
753 | | | summary: add obsol_d''
754 | | |
755 | | | x changeset: 7:909a0fb57e5d
756 | | |/ parent: 3:0d3f46688ccc
757 | | | user: test
758 | | | date: Thu Jan 01 00:00:00 1970 +0000
759 | | | summary: add obsol_d'
760 | | |
761 | | | x changeset: 6:95de7fc6918d
762 | | |/ parent: 3:0d3f46688ccc
763 | | | user: test
764 | | | date: Thu Jan 01 00:00:00 1970 +0000
765 | | | summary: add obsol_d
766 | | |
767 | | | x changeset: 5:a7a6f2b5d8a5
768 | | |/ parent: 3:0d3f46688ccc
769 | | | user: test
770 | | | date: Thu Jan 01 00:00:00 1970 +0000
771 | | | summary: add d
772 | | |
773 | o | changeset: 4:725c380fe99b
774 | | | parent: 1:7c3bad9141dc
775 | | | user: test
776 | | | date: Thu Jan 01 00:00:00 1970 +0000
777 | | | summary: add obsol_c'
778 | | |
779 | | x changeset: 3:0d3f46688ccc
780 | |/ parent: 1:7c3bad9141dc
781 | | user: test
782 | | date: Thu Jan 01 00:00:00 1970 +0000
783 | | summary: add obsol_c
784 | |
785 x | changeset: 2:4538525df7e2
786 |/ user: test
787 | date: Thu Jan 01 00:00:00 1970 +0000
788 | summary: add c
789 |
790 o changeset: 1:7c3bad9141dc
791 | user: test
792 | date: Thu Jan 01 00:00:00 1970 +0000
793 | summary: add b
794 |
795 o changeset: 0:1f0dee641bb7
796 user: test
797 date: Thu Jan 01 00:00:00 1970 +0000
798 summary: add a
799
800
801 Simple rewrite
802
803 $ hg --hidden debugobsoleterelevant 3
804 4538525df7e2b9f09423636c61ef63a4cb872a2d 0d3f46688ccc6e756c7e96cf64c391c411309597 0 {'date': '', 'user': 'test'}
805
806 simple rewrite with a prune attached to it
807
808 $ hg debugobsoleterelevant 15
809 0b1b6dd009c037985363e2290a0b579819f659db 705ab2a6b72e2cd86edb799ebe15f2695f86143e 0 {'date': '* *', 'user': 'test'} (glob)
810 33d458d86621f3186c40bfccd77652f4a122743e 0 {'date': '* *', 'p1': '0b1b6dd009c037985363e2290a0b579819f659db', 'user': 'test'} (glob)
811
812 Transitive rewrite
813
814 $ hg --hidden debugobsoleterelevant 8
815 909a0fb57e5d909f353d89e394ffd7e0890fec88 159dfc9fa5d334d7e03a0aecfc7f7ab4c3431fea 0 {'date': '', 'user': 'test'}
816 95de7fc6918dea4c9c8d5382f50649794b474c4a 909a0fb57e5d909f353d89e394ffd7e0890fec88 0 {'date': '', 'user': 'test'}
817 a7a6f2b5d8a54b81bc7aa2fba2934ad6d700a79e 95de7fc6918dea4c9c8d5382f50649794b474c4a 0 {'date': '', 'user': 'test'}
818