Mercurial > evolve
comparison tests/test-rewind.t @ 3871:2e32a1ef0c60
rewing: add the ability to rewind "from" revisions
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 17 Jun 2018 03:10:19 +0200 |
parents | e0bf44befd6e |
children | bbc3cfdfe42b |
comparison
equal
deleted
inserted
replaced
3870:e0bf44befd6e | 3871:2e32a1ef0c60 |
---|---|
746 user: test | 746 user: test |
747 date: Thu Jan 01 00:00:00 1970 +0000 | 747 date: Thu Jan 01 00:00:00 1970 +0000 |
748 summary: c_ROOT | 748 summary: c_ROOT |
749 | 749 |
750 | 750 |
751 cleanup | 751 Testing --from (and cleanup) |
752 ``````` | 752 ``````````````````````````` |
753 | 753 |
754 $ echo 'default-date = 4 0' >> $HGRCPATH | 754 $ echo 'default-date = 4 0' >> $HGRCPATH |
755 $ hg rewind --hidden --to 'precursors(.)' | 755 $ hg rewind --from '.' |
756 rewinded to 1 changesets | 756 rewinded to 1 changesets |
757 (1 changesets obsoleted) | 757 (1 changesets obsoleted) |
758 working directory is now at 7b1440274cc3 | 758 working directory is now at 7b1440274cc3 |
759 $ echo 'default-date = 5 0' >> $HGRCPATH | 759 $ echo 'default-date = 5 0' >> $HGRCPATH |
760 $ hg log -G | 760 $ hg log -G |
795 | | 795 | |
796 x 7e594302a05d (2) c_B0 | 796 x 7e594302a05d (2) c_B0 |
797 rewritten(meta, date) as 96622b0702dd using rewind by test (Thu Jan 01 00:00:03 1970 +0000) | 797 rewritten(meta, date) as 96622b0702dd using rewind by test (Thu Jan 01 00:00:03 1970 +0000) |
798 rewritten(parent) as a65fceb2324a using evolve by test (Thu Jan 01 00:00:03 1970 +0000) | 798 rewritten(parent) as a65fceb2324a using evolve by test (Thu Jan 01 00:00:03 1970 +0000) |
799 | 799 |
800 Automaticlaly rewinding the full stack | 800 Automatically rewinding the full stack (with --to) |
801 -------------------------------------- | 801 -------------------------------------------------- |
802 | 802 |
803 $ hg rewind --hidden --to 'precursors(.)' | 803 $ hg rewind --hidden --to 'precursors(.)' |
804 rewinded to 2 changesets | 804 rewinded to 2 changesets |
805 (2 changesets obsoleted) | 805 (2 changesets obsoleted) |
806 working directory is now at 70892f498f29 | 806 working directory is now at 70892f498f29 |
849 o changeset: 0:eba9c2249fe7 | 849 o changeset: 0:eba9c2249fe7 |
850 user: test | 850 user: test |
851 date: Thu Jan 01 00:00:00 1970 +0000 | 851 date: Thu Jan 01 00:00:00 1970 +0000 |
852 summary: c_ROOT | 852 summary: c_ROOT |
853 | 853 |
854 | |
855 Automatically rewinding the full stack (with --from) | |
856 ---------------------------------------------------- | |
857 | |
858 $ echo 'default-date = 6 0' >> $HGRCPATH | |
859 $ hg rewind --hidden --from '.' | |
860 rewinded to 2 changesets | |
861 (2 changesets obsoleted) | |
862 working directory is now at 141aedbbde8f | |
863 $ hg debugobsolete | |
864 579f120ba91885449adc92eedf48ef3569742cee d952d1794ff657f5c2a82225d2e6307ed930b32f 0 (Thu Jan 01 00:00:03 1970 +0000) {'ef1': '9', 'operation': 'amend', 'user': 'test'} | |
865 7e594302a05d3769b27be88fc3cdfd39d7498498 a65fceb2324ae1eb1231610193d24a5fa02c7c0e 0 (Thu Jan 01 00:00:03 1970 +0000) {'ef1': '4', 'operation': 'evolve', 'user': 'test'} | |
866 7e594302a05d3769b27be88fc3cdfd39d7498498 96622b0702dd86e3a702b0235b420da41f072efe 4 (Thu Jan 01 00:00:03 1970 +0000) {'ef1': '34', 'operation': 'rewind', 'user': 'test'} | |
867 a65fceb2324ae1eb1231610193d24a5fa02c7c0e 96622b0702dd86e3a702b0235b420da41f072efe 0 (Thu Jan 01 00:00:03 1970 +0000) {'ef1': '38', 'operation': 'rewind', 'user': 'test'} | |
868 a65fceb2324ae1eb1231610193d24a5fa02c7c0e 7b1440274cc3b3f8bfcffc891172a7d2d7e9140c 4 (Thu Jan 01 00:00:04 1970 +0000) {'ef1': '34', 'operation': 'rewind', 'user': 'test'} | |
869 96622b0702dd86e3a702b0235b420da41f072efe 7b1440274cc3b3f8bfcffc891172a7d2d7e9140c 0 (Thu Jan 01 00:00:04 1970 +0000) {'ef1': '38', 'operation': 'rewind', 'user': 'test'} | |
870 579f120ba91885449adc92eedf48ef3569742cee c0d232501dd8e52b8ca8a266f25db89f5120c17f 4 (Thu Jan 01 00:00:05 1970 +0000) {'ef1': '34', 'operation': 'rewind', 'user': 'test'} | |
871 96622b0702dd86e3a702b0235b420da41f072efe 70892f498f2993d626848bb312ff856168d0b9c4 4 (Thu Jan 01 00:00:05 1970 +0000) {'ef1': '38', 'operation': 'rewind', 'user': 'test'} | |
872 7b1440274cc3b3f8bfcffc891172a7d2d7e9140c 70892f498f2993d626848bb312ff856168d0b9c4 0 (Thu Jan 01 00:00:05 1970 +0000) {'ef1': '38', 'operation': 'rewind', 'user': 'test'} | |
873 d952d1794ff657f5c2a82225d2e6307ed930b32f c0d232501dd8e52b8ca8a266f25db89f5120c17f 0 (Thu Jan 01 00:00:05 1970 +0000) {'ef1': '43', 'operation': 'rewind', 'user': 'test'} | |
874 d952d1794ff657f5c2a82225d2e6307ed930b32f 7b4aed5e99d2734da6cc25f0095876c5cb6e8084 4 (Thu Jan 01 00:00:06 1970 +0000) {'ef1': '34', 'operation': 'rewind', 'user': 'test'} | |
875 7b1440274cc3b3f8bfcffc891172a7d2d7e9140c 141aedbbde8f407fc8a8a7355221733b0fc01ca5 4 (Thu Jan 01 00:00:06 1970 +0000) {'ef1': '38', 'operation': 'rewind', 'user': 'test'} | |
876 70892f498f2993d626848bb312ff856168d0b9c4 141aedbbde8f407fc8a8a7355221733b0fc01ca5 0 (Thu Jan 01 00:00:06 1970 +0000) {'ef1': '38', 'operation': 'rewind', 'user': 'test'} | |
877 c0d232501dd8e52b8ca8a266f25db89f5120c17f 7b4aed5e99d2734da6cc25f0095876c5cb6e8084 0 (Thu Jan 01 00:00:06 1970 +0000) {'ef1': '43', 'operation': 'rewind', 'user': 'test'} | |
878 $ hg obslog | |
879 @ 141aedbbde8f (10) c_B0 | |
880 |\ | |
881 x | 70892f498f29 (8) c_B0 | |
882 |\| rewritten(meta, date, parent) as 141aedbbde8f using rewind by test (Thu Jan 01 00:00:06 1970 +0000) | |
883 | | | |
884 | x 7b1440274cc3 (6) c_B0 | |
885 |/| rewritten(meta, date, parent) as 141aedbbde8f using rewind by test (Thu Jan 01 00:00:06 1970 +0000) | |
886 | | rewritten(meta, date, parent) as 70892f498f29 using rewind by test (Thu Jan 01 00:00:05 1970 +0000) | |
887 | | | |
888 x | 96622b0702dd (5) c_B0 | |
889 |\| rewritten(meta, date, parent) as 70892f498f29 using rewind by test (Thu Jan 01 00:00:05 1970 +0000) | |
890 | | rewritten(meta, date, parent) as 7b1440274cc3 using rewind by test (Thu Jan 01 00:00:04 1970 +0000) | |
891 | | | |
892 | x a65fceb2324a (4) c_B0 | |
893 |/ rewritten(meta, date) as 7b1440274cc3 using rewind by test (Thu Jan 01 00:00:04 1970 +0000) | |
894 | rewritten(meta, date, parent) as 96622b0702dd using rewind by test (Thu Jan 01 00:00:03 1970 +0000) | |
895 | | |
896 x 7e594302a05d (2) c_B0 | |
897 rewritten(meta, date) as 96622b0702dd using rewind by test (Thu Jan 01 00:00:03 1970 +0000) | |
898 rewritten(parent) as a65fceb2324a using evolve by test (Thu Jan 01 00:00:03 1970 +0000) | |
899 | |
900 $ hg log -G | |
901 @ changeset: 10:141aedbbde8f | |
902 | tag: tip | |
903 | user: test | |
904 | date: Thu Jan 01 00:00:06 1970 +0000 | |
905 | summary: c_B0 | |
906 | | |
907 o changeset: 9:7b4aed5e99d2 | |
908 | parent: 0:eba9c2249fe7 | |
909 | user: test | |
910 | date: Thu Jan 01 00:00:06 1970 +0000 | |
911 | summary: c_A1 | |
912 | | |
913 o changeset: 0:eba9c2249fe7 | |
914 user: test | |
915 date: Thu Jan 01 00:00:00 1970 +0000 | |
916 summary: c_ROOT | |
917 |