Mercurial > evolve
comparison tests/test-rewind.t @ 3868:1742254d1190
rewind: automatically rewind entire stack
We now rewind the full stack, avoiding creating orphans. A `--exact` flag is
added to force rewinding only the explicitly specified changesets.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 17 Jun 2018 02:32:29 +0200 |
parents | 339b05c3e929 |
children | e0bf44befd6e |
comparison
equal
deleted
inserted
replaced
3867:339b05c3e929 | 3868:1742254d1190 |
---|---|
699 | 699 |
700 | 700 |
701 Actual rewind | 701 Actual rewind |
702 ````````````` | 702 ````````````` |
703 | 703 |
704 $ hg rewind --hidden --to 'min(desc(c_B0))' | 704 $ hg rewind --hidden --to 'min(desc(c_B0))' --exact |
705 1 new orphan changesets | 705 1 new orphan changesets |
706 rewinded to 1 changesets | 706 rewinded to 1 changesets |
707 (1 changesets obsoleted) | 707 (1 changesets obsoleted) |
708 working directory is now at 96622b0702dd | 708 working directory is now at 96622b0702dd |
709 $ hg debugobsolete | 709 $ hg debugobsolete |
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 | |
801 -------------------------------------- | |
802 | |
803 $ hg rewind --hidden --to 'max(precursors(.))' | |
804 rewinded to 2 changesets | |
805 (2 changesets obsoleted) | |
806 working directory is now at 70892f498f29 | |
807 $ hg debugobsolete | |
808 579f120ba91885449adc92eedf48ef3569742cee d952d1794ff657f5c2a82225d2e6307ed930b32f 0 (Thu Jan 01 00:00:03 1970 +0000) {'ef1': '9', 'operation': 'amend', 'user': 'test'} | |
809 7e594302a05d3769b27be88fc3cdfd39d7498498 a65fceb2324ae1eb1231610193d24a5fa02c7c0e 0 (Thu Jan 01 00:00:03 1970 +0000) {'ef1': '4', 'operation': 'evolve', 'user': 'test'} | |
810 7e594302a05d3769b27be88fc3cdfd39d7498498 96622b0702dd86e3a702b0235b420da41f072efe 4 (Thu Jan 01 00:00:03 1970 +0000) {'ef1': '34', 'operation': 'rewind', 'user': 'test'} | |
811 a65fceb2324ae1eb1231610193d24a5fa02c7c0e 96622b0702dd86e3a702b0235b420da41f072efe 0 (Thu Jan 01 00:00:03 1970 +0000) {'ef1': '38', 'operation': 'rewind', 'user': 'test'} | |
812 a65fceb2324ae1eb1231610193d24a5fa02c7c0e 7b1440274cc3b3f8bfcffc891172a7d2d7e9140c 4 (Thu Jan 01 00:00:04 1970 +0000) {'ef1': '34', 'operation': 'rewind', 'user': 'test'} | |
813 96622b0702dd86e3a702b0235b420da41f072efe 7b1440274cc3b3f8bfcffc891172a7d2d7e9140c 0 (Thu Jan 01 00:00:04 1970 +0000) {'ef1': '38', 'operation': 'rewind', 'user': 'test'} | |
814 579f120ba91885449adc92eedf48ef3569742cee c0d232501dd8e52b8ca8a266f25db89f5120c17f 4 (Thu Jan 01 00:00:05 1970 +0000) {'ef1': '34', 'operation': 'rewind', 'user': 'test'} | |
815 96622b0702dd86e3a702b0235b420da41f072efe 70892f498f2993d626848bb312ff856168d0b9c4 4 (Thu Jan 01 00:00:05 1970 +0000) {'ef1': '38', 'operation': 'rewind', 'user': 'test'} | |
816 7b1440274cc3b3f8bfcffc891172a7d2d7e9140c 70892f498f2993d626848bb312ff856168d0b9c4 0 (Thu Jan 01 00:00:05 1970 +0000) {'ef1': '38', 'operation': 'rewind', 'user': 'test'} | |
817 d952d1794ff657f5c2a82225d2e6307ed930b32f c0d232501dd8e52b8ca8a266f25db89f5120c17f 0 (Thu Jan 01 00:00:05 1970 +0000) {'ef1': '43', 'operation': 'rewind', 'user': 'test'} | |
818 $ hg obslog | |
819 @ 70892f498f29 (8) c_B0 | |
820 |\ | |
821 x | 7b1440274cc3 (6) c_B0 | |
822 |\| rewritten(meta, date, parent) as 70892f498f29 using rewind by test (Thu Jan 01 00:00:05 1970 +0000) | |
823 | | | |
824 | x 96622b0702dd (5) c_B0 | |
825 |/| rewritten(meta, date, parent) as 70892f498f29 using rewind by test (Thu Jan 01 00:00:05 1970 +0000) | |
826 | | rewritten(meta, date, parent) as 7b1440274cc3 using rewind by test (Thu Jan 01 00:00:04 1970 +0000) | |
827 | | | |
828 x | a65fceb2324a (4) c_B0 | |
829 |/ rewritten(meta, date) as 7b1440274cc3 using rewind by test (Thu Jan 01 00:00:04 1970 +0000) | |
830 | rewritten(meta, date, parent) as 96622b0702dd using rewind by test (Thu Jan 01 00:00:03 1970 +0000) | |
831 | | |
832 x 7e594302a05d (2) c_B0 | |
833 rewritten(meta, date) as 96622b0702dd using rewind by test (Thu Jan 01 00:00:03 1970 +0000) | |
834 rewritten(parent) as a65fceb2324a using evolve by test (Thu Jan 01 00:00:03 1970 +0000) | |
835 | |
836 $ hg log -G | |
837 @ changeset: 8:70892f498f29 | |
838 | tag: tip | |
839 | user: test | |
840 | date: Thu Jan 01 00:00:05 1970 +0000 | |
841 | summary: c_B0 | |
842 | | |
843 o changeset: 7:c0d232501dd8 | |
844 | parent: 0:eba9c2249fe7 | |
845 | user: test | |
846 | date: Thu Jan 01 00:00:05 1970 +0000 | |
847 | summary: c_A0 | |
848 | | |
849 o changeset: 0:eba9c2249fe7 | |
850 user: test | |
851 date: Thu Jan 01 00:00:00 1970 +0000 | |
852 summary: c_ROOT | |
853 |