Mercurial > evolve
comparison tests/test-evolve.t @ 6398:270223576b7f mercurial-5.3
test-compat: merge mercurial-5.4 into mercurial-5.3
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Tue, 07 Feb 2023 01:44:08 +0400 |
parents | d76fefa7355a e5bd76f95145 |
children |
comparison
equal
deleted
inserted
replaced
6352:0bf00051bbc7 | 6398:270223576b7f |
---|---|
390 4 feature-A: a nifty feature - test | 390 4 feature-A: a nifty feature - test |
391 0 : base - test | 391 0 : base - test |
392 | 392 |
393 phase change turning obsolete changeset public issues a phase divergence warning | 393 phase change turning obsolete changeset public issues a phase divergence warning |
394 | 394 |
395 $ hg phase --hidden --public 99833d22b0c6 | 395 $ hg phase --hidden --public 5c9c8d9c2e4e |
396 1 new phase-divergent changesets | 396 1 new phase-divergent changesets |
397 | 397 |
398 all solving phase-divergent | 398 all solving phase-divergent |
399 | 399 |
400 $ glog | 400 $ glog |
401 @ 6:47d52a103155@default(draft) another feature that rox | 401 @ 6:47d52a103155@default(draft) another feature that rox |
402 | | 402 | |
403 | o 5:99833d22b0c6@default(public) another feature (child of ba0ec09b1bab) | 403 | o 5:5c9c8d9c2e4e@default(public) another feature (child of ba0ec09b1bab) |
404 |/ | 404 |/ |
405 o 4:ba0ec09b1bab@default(public) a nifty feature | 405 o 4:ba0ec09b1bab@default(public) a nifty feature |
406 | | 406 | |
407 o 0:e55e0562ee93@default(public) base | 407 o 0:e55e0562ee93@default(public) base |
408 | 408 |
409 $ hg evolve --any --traceback --phase-divergent | 409 $ hg evolve --any --traceback --phase-divergent |
410 recreate:[6] another feature that rox | 410 recreate:[6] another feature that rox |
411 atop:[5] another feature (child of ba0ec09b1bab) | 411 atop:[5] another feature (child of ba0ec09b1bab) |
412 committed as aca219761afb | 412 committed as acecd63a9288 |
413 working directory is now at aca219761afb | 413 working directory is now at acecd63a9288 |
414 $ glog | 414 $ glog |
415 @ 7:aca219761afb@default(draft) phase-divergent update to 99833d22b0c6: | 415 @ 7:acecd63a9288@default(draft) phase-divergent update to 5c9c8d9c2e4e: |
416 | | 416 | |
417 o 5:99833d22b0c6@default(public) another feature (child of ba0ec09b1bab) | 417 o 5:5c9c8d9c2e4e@default(public) another feature (child of ba0ec09b1bab) |
418 | | 418 | |
419 o 4:ba0ec09b1bab@default(public) a nifty feature | 419 o 4:ba0ec09b1bab@default(public) a nifty feature |
420 | | 420 | |
421 o 0:e55e0562ee93@default(public) base | 421 o 0:e55e0562ee93@default(public) base |
422 | 422 |
423 $ hg diff --hidden -r aca219761afb -r 47d52a103155 | 423 $ hg diff --hidden -r acecd63a9288 -r 47d52a103155 |
424 $ hg diff -r aca219761afb^ -r aca219761afb | 424 $ hg diff -r acecd63a9288^ -r acecd63a9288 |
425 diff --git a/main-file-1 b/main-file-1 | 425 diff --git a/main-file-1 b/main-file-1 |
426 --- a/main-file-1 | 426 --- a/main-file-1 |
427 +++ b/main-file-1 | 427 +++ b/main-file-1 |
428 @@ -3,1 +3,1 @@ | 428 @@ -3,1 +3,1 @@ |
429 -Zwei | 429 -Zwei |
433 test evolve --all | 433 test evolve --all |
434 $ sed -i'' -e s/deux/to/ main-file-1 | 434 $ sed -i'' -e s/deux/to/ main-file-1 |
435 $ hg commit -m 'dansk 2!' | 435 $ hg commit -m 'dansk 2!' |
436 $ sed -i'' -e s/Three/tre/ main-file-1 | 436 $ sed -i'' -e s/Three/tre/ main-file-1 |
437 $ hg commit -m 'dansk 3!' | 437 $ hg commit -m 'dansk 3!' |
438 $ hg update aca219761afb | 438 $ hg update acecd63a9288 |
439 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 439 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
440 $ sed -i'' -e s/Un/Én/ main-file-1 | 440 $ sed -i'' -e s/Un/Én/ main-file-1 |
441 $ hg commit --amend -m 'dansk!' | 441 $ hg commit --amend -m 'dansk!' |
442 2 new orphan changesets | 442 2 new orphan changesets |
443 | 443 |
845 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 845 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
846 $ hg fold --from .^ --message "Folding with custom commit message" | 846 $ hg fold --from .^ --message "Folding with custom commit message" |
847 2 changesets folded | 847 2 changesets folded |
848 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 848 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
849 $ glog | 849 $ glog |
850 @ 13:284c0d45770d@default(draft) Folding with custom commit message | 850 @ 13:90308a3a84bd@default(draft) Folding with custom commit message |
851 | | 851 | |
852 o 10:9975c016fe7b@default(draft) dansk! | 852 o 10:74d61108f94b@default(draft) dansk! |
853 | | 853 | |
854 o 5:99833d22b0c6@default(public) another feature (child of ba0ec09b1bab) | 854 o 5:5c9c8d9c2e4e@default(public) another feature (child of ba0ec09b1bab) |
855 | | 855 | |
856 o 4:ba0ec09b1bab@default(public) a nifty feature | 856 o 4:ba0ec09b1bab@default(public) a nifty feature |
857 | | 857 | |
858 o 0:e55e0562ee93@default(public) base | 858 o 0:e55e0562ee93@default(public) base |
859 | 859 |
864 | 864 |
865 $ hg fold --from .^ --logfile commit-message | 865 $ hg fold --from .^ --logfile commit-message |
866 2 changesets folded | 866 2 changesets folded |
867 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 867 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
868 $ hg qlog | 868 $ hg qlog |
869 14 - 8693d0f277b8 A longer | 869 14 - c07a8bc54a51 A longer |
870 commit message (draft) | 870 commit message (draft) |
871 5 - 99833d22b0c6 another feature (child of ba0ec09b1bab) (public) | 871 5 - 5c9c8d9c2e4e another feature (child of ba0ec09b1bab) (public) |
872 4 - ba0ec09b1bab a nifty feature (public) | 872 4 - ba0ec09b1bab a nifty feature (public) |
873 0 - e55e0562ee93 base (public) | 873 0 - e55e0562ee93 base (public) |
874 | 874 |
875 $ cd .. | 875 $ cd .. |
876 | 876 |
982 atop:[9] a1__ | 982 atop:[9] a1__ |
983 (leaving bookmark testbookmark) | 983 (leaving bookmark testbookmark) |
984 $ ls .hg/bookmarks* | 984 $ ls .hg/bookmarks* |
985 .hg/bookmarks | 985 .hg/bookmarks |
986 $ glog | 986 $ glog |
987 o 10:d952e93add6f@mybranch(draft) a2 | 987 o 10:f37ed7a60f43@mybranch(draft) a2 |
988 | | 988 | |
989 @ 9:9f8b83c2e7f3@default(draft) a1__ | 989 @ 9:9f8b83c2e7f3@default(draft) a1__ |
990 | | 990 | |
991 | * 8:777c26ca5e78@mybranch(draft) a3 | 991 | * 8:c7661e655801@mybranch(draft) a3 |
992 | | | 992 | | |
993 | x 7:eb07e22a0e63@mybranch(draft) a2 | 993 | x 7:5406c5cfee42@mybranch(draft) a2 |
994 | | | 994 | | |
995 | x 6:faafc6cea0ba@default(draft) a1_ | 995 | x 6:faafc6cea0ba@default(draft) a1_ |
996 |/ | 996 |/ |
997 o 0:07c1c36d9ef0@default(draft) a0 | 997 o 0:07c1c36d9ef0@default(draft) a0 |
998 | 998 |
999 | 999 |
1000 Possibility to select what instability to solve first, asking for | 1000 Possibility to select what instability to solve first, asking for |
1001 phase-divergent before content-divergent | 1001 phase-divergent before content-divergent |
1002 $ hg revert -r d952e93add6f --all | 1002 $ hg revert -r f37ed7a60f43 --all |
1003 reverting a | 1003 reverting a |
1004 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' | 1004 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' |
1005 o 10 [mybranch] a2 | 1005 o 10 [mybranch] a2 |
1006 | | 1006 | |
1007 @ 9 [default] a1__ | 1007 @ 9 [default] a1__ |
1015 o 0 [default] a0 | 1015 o 0 [default] a0 |
1016 | 1016 |
1017 $ echo "hello world" > newfile | 1017 $ echo "hello world" > newfile |
1018 $ hg add newfile | 1018 $ hg add newfile |
1019 $ hg commit -m "add new file bumped" -o 10 | 1019 $ hg commit -m "add new file bumped" -o 10 |
1020 $ hg phase --public --hidden d952e93add6f | 1020 $ hg phase --public --hidden f37ed7a60f43 |
1021 1 new phase-divergent changesets | 1021 1 new phase-divergent changesets |
1022 $ hg log -G | 1022 $ hg log -G |
1023 @ 11 : add new file bumped - test | 1023 @ 11 : add new file bumped - test |
1024 | | 1024 | |
1025 | o 10 : a2 - test | 1025 | o 10 : a2 - test |
1054 o 0 : a0 - test | 1054 o 0 : a0 - test |
1055 | 1055 |
1056 $ hg evolve -r "desc('add new file bumped')" --phase-divergent | 1056 $ hg evolve -r "desc('add new file bumped')" --phase-divergent |
1057 recreate:[11] add new file bumped | 1057 recreate:[11] add new file bumped |
1058 atop:[10] a2 | 1058 atop:[10] a2 |
1059 committed as a8bb31d4b7f2 | 1059 committed as db294883bd68 |
1060 working directory is now at a8bb31d4b7f2 | 1060 working directory is now at db294883bd68 |
1061 $ hg evolve --any | 1061 $ hg evolve --any |
1062 move:[8] a3 | 1062 move:[8] a3 |
1063 atop:[12] phase-divergent update to d952e93add6f: | 1063 atop:[12] phase-divergent update to f37ed7a60f43: |
1064 $ glog | 1064 $ glog |
1065 o 13:b88539ad24d7@default(draft) a3 | 1065 o 13:0210bf7b6518@default(draft) a3 |
1066 | | 1066 | |
1067 @ 12:a8bb31d4b7f2@default(draft) phase-divergent update to d952e93add6f: | 1067 @ 12:db294883bd68@default(draft) phase-divergent update to f37ed7a60f43: |
1068 | | 1068 | |
1069 o 10:d952e93add6f@mybranch(public) a2 | 1069 o 10:f37ed7a60f43@mybranch(public) a2 |
1070 | | 1070 | |
1071 o 9:9f8b83c2e7f3@default(public) a1__ | 1071 o 9:9f8b83c2e7f3@default(public) a1__ |
1072 | | 1072 | |
1073 o 0:07c1c36d9ef0@default(public) a0 | 1073 o 0:07c1c36d9ef0@default(public) a0 |
1074 | 1074 |
1075 | 1075 |
1076 Check that we can resolve instabilities in a revset with more than one commit | 1076 Check that we can resolve instabilities in a revset with more than one commit |
1077 $ hg up b88539ad24d7 -C | 1077 $ hg up 0210bf7b6518 -C |
1078 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1078 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1079 $ mkcommit gg | 1079 $ mkcommit gg |
1080 $ hg up b88539ad24d7 | 1080 $ hg up 0210bf7b6518 |
1081 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1081 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1082 $ mkcommit gh | 1082 $ mkcommit gh |
1083 created new head | 1083 created new head |
1084 $ hg up b88539ad24d7 | 1084 $ hg up 0210bf7b6518 |
1085 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1085 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1086 $ printf "newline\nnewline\n" >> a | 1086 $ printf "newline\nnewline\n" >> a |
1087 $ hg log -G | 1087 $ hg log -G |
1088 o 15 : add gh - test | 1088 o 15 : add gh - test |
1089 | | 1089 | |
1090 | o 14 : add gg - test | 1090 | o 14 : add gg - test |
1091 |/ | 1091 |/ |
1092 @ 13 : a3 - test | 1092 @ 13 : a3 - test |
1093 | | 1093 | |
1094 o 12 : phase-divergent update to d952e93add6f: - test | 1094 o 12 : phase-divergent update to f37ed7a60f43: - test |
1095 | | 1095 | |
1096 o 10 : a2 - test | 1096 o 10 : a2 - test |
1097 | | 1097 | |
1098 o 9 testbookmark: a1__ - test | 1098 o 9 testbookmark: a1__ - test |
1099 | | 1099 | |
1100 o 0 : a0 - test | 1100 o 0 : a0 - test |
1101 | 1101 |
1102 $ hg amend | 1102 $ hg amend |
1103 2 new orphan changesets | 1103 2 new orphan changesets |
1104 $ glog | 1104 $ glog |
1105 @ 16:0cf3707e8971@default(draft) a3 | 1105 @ 16:5478ae0ce2d9@default(draft) a3 |
1106 | | 1106 | |
1107 | * 15:daa1ff1c7fbd@default(draft) add gh | 1107 | * 15:fb5702c4d3e6@default(draft) add gh |
1108 | | | 1108 | | |
1109 | | * 14:484fb3cfa7f2@default(draft) add gg | 1109 | | * 14:148850890f43@default(draft) add gg |
1110 | |/ | 1110 | |/ |
1111 | x 13:b88539ad24d7@default(draft) a3 | 1111 | x 13:0210bf7b6518@default(draft) a3 |
1112 |/ | 1112 |/ |
1113 o 12:a8bb31d4b7f2@default(draft) phase-divergent update to d952e93add6f: | 1113 o 12:db294883bd68@default(draft) phase-divergent update to f37ed7a60f43: |
1114 | | 1114 | |
1115 o 10:d952e93add6f@mybranch(public) a2 | 1115 o 10:f37ed7a60f43@mybranch(public) a2 |
1116 | | 1116 | |
1117 o 9:9f8b83c2e7f3@default(public) a1__ | 1117 o 9:9f8b83c2e7f3@default(public) a1__ |
1118 | | 1118 | |
1119 o 0:07c1c36d9ef0@default(public) a0 | 1119 o 0:07c1c36d9ef0@default(public) a0 |
1120 | 1120 |
1121 | 1121 |
1122 Evolving an empty revset should do nothing | 1122 Evolving an empty revset should do nothing |
1123 $ hg evolve --rev "daa1ff1c7fbd and 484fb3cfa7f2" | 1123 $ hg evolve --rev "fb5702c4d3e6 and 148850890f43" |
1124 set of specified revisions is empty | 1124 set of specified revisions is empty |
1125 [1] | 1125 [1] |
1126 | 1126 |
1127 $ hg evolve --rev "b88539ad24d7::" --phase-divergent | 1127 $ hg evolve --rev "0210bf7b6518::" --phase-divergent |
1128 no phasedivergent changesets in specified revisions | 1128 no phasedivergent changesets in specified revisions |
1129 (do you want to use --orphan) | 1129 (do you want to use --orphan) |
1130 [2] | 1130 [2] |
1131 $ hg evolve --rev "b88539ad24d7::" --orphan | 1131 $ hg evolve --rev "0210bf7b6518::" --orphan |
1132 move:[14] add gg | 1132 move:[14] add gg |
1133 atop:[16] a3 | 1133 atop:[16] a3 |
1134 move:[15] add gh | 1134 move:[15] add gh |
1135 atop:[16] a3 | 1135 atop:[16] a3 |
1136 $ glog | 1136 $ glog |
1137 o 18:0c049e4e5422@default(draft) add gh | 1137 o 18:5f8a4fc86068@default(draft) add gh |
1138 | | 1138 | |
1139 | o 17:98e171e2f272@default(draft) add gg | 1139 | o 17:a38ac764661b@default(draft) add gg |
1140 |/ | 1140 |/ |
1141 @ 16:0cf3707e8971@default(draft) a3 | 1141 @ 16:5478ae0ce2d9@default(draft) a3 |
1142 | | 1142 | |
1143 o 12:a8bb31d4b7f2@default(draft) phase-divergent update to d952e93add6f: | 1143 o 12:db294883bd68@default(draft) phase-divergent update to f37ed7a60f43: |
1144 | | 1144 | |
1145 o 10:d952e93add6f@mybranch(public) a2 | 1145 o 10:f37ed7a60f43@mybranch(public) a2 |
1146 | | 1146 | |
1147 o 9:9f8b83c2e7f3@default(public) a1__ | 1147 o 9:9f8b83c2e7f3@default(public) a1__ |
1148 | | 1148 | |
1149 o 0:07c1c36d9ef0@default(public) a0 | 1149 o 0:07c1c36d9ef0@default(public) a0 |
1150 | 1150 |
1177 | 1177 |
1178 Shows "use 'hg evolve' to..." hints iff the evolve command is enabled | 1178 Shows "use 'hg evolve' to..." hints iff the evolve command is enabled |
1179 | 1179 |
1180 $ hg --hidden up 14 | 1180 $ hg --hidden up 14 |
1181 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1181 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1182 updated to hidden changeset 484fb3cfa7f2 | 1182 updated to hidden changeset 148850890f43 |
1183 (hidden revision '484fb3cfa7f2' was rewritten as: 98e171e2f272) | 1183 (hidden revision '148850890f43' was rewritten as: a38ac764661b) |
1184 working directory parent is obsolete! (484fb3cfa7f2) | 1184 working directory parent is obsolete! (148850890f43) |
1185 $ cat >> $HGRCPATH <<EOF | 1185 $ cat >> $HGRCPATH <<EOF |
1186 > [experimental] | 1186 > [experimental] |
1187 > evolutioncommands=evolve | 1187 > evolutioncommands=evolve |
1188 > EOF | 1188 > EOF |
1189 $ hg --hidden up 15 | 1189 $ hg --hidden up 15 |
1190 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1190 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1191 updated to hidden changeset daa1ff1c7fbd | 1191 updated to hidden changeset fb5702c4d3e6 |
1192 (hidden revision 'daa1ff1c7fbd' was rewritten as: 0c049e4e5422) | 1192 (hidden revision 'fb5702c4d3e6' was rewritten as: 5f8a4fc86068) |
1193 working directory parent is obsolete! (daa1ff1c7fbd) | 1193 working directory parent is obsolete! (fb5702c4d3e6) |
1194 (use 'hg evolve' to update to its successor: 0c049e4e5422) | 1194 (use 'hg evolve' to update to its successor: 5f8a4fc86068) |
1195 | 1195 |
1196 Restore all of the evolution features | 1196 Restore all of the evolution features |
1197 | 1197 |
1198 $ cat >> $HGRCPATH <<EOF | 1198 $ cat >> $HGRCPATH <<EOF |
1199 > [experimental] | 1199 > [experimental] |
1200 > evolution=all | 1200 > evolution=all |
1201 > EOF | 1201 > EOF |
1202 | 1202 |
1203 Check hg evolve --rev on singled out commit | 1203 Check hg evolve --rev on singled out commit |
1204 $ hg up 98e171e2f272 -C | 1204 $ hg up a38ac764661b -C |
1205 2 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1205 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1206 $ mkcommit j1 | 1206 $ mkcommit j1 |
1207 $ mkcommit j2 | 1207 $ mkcommit j2 |
1208 $ mkcommit j3 | 1208 $ mkcommit j3 |
1209 $ hg up .^^ | 1209 $ hg up .^^ |
1210 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 1210 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1211 $ echo "hello" > j4 | 1211 $ echo "hello" > j4 |
1212 $ hg add j4 | 1212 $ hg add j4 |
1213 $ hg amend | 1213 $ hg amend |
1214 2 new orphan changesets | 1214 2 new orphan changesets |
1215 $ glog -r "0cf3707e8971::" | 1215 $ glog -r "5478ae0ce2d9::" |
1216 @ 22:274b6cd0c101@default(draft) add j1 | 1216 @ 22:cc75952078c6@default(draft) add j1 |
1217 | | 1217 | |
1218 | * 21:89e4f7e8feb5@default(draft) add j3 | 1218 | * 21:677a629bd09c@default(draft) add j3 |
1219 | | | 1219 | | |
1220 | * 20:4cd61236beca@default(draft) add j2 | 1220 | * 20:0208ef487f3a@default(draft) add j2 |
1221 | | | 1221 | | |
1222 | x 19:0fd8bfb02de4@default(draft) add j1 | 1222 | x 19:30d3ac01aa58@default(draft) add j1 |
1223 |/ | 1223 |/ |
1224 | o 18:0c049e4e5422@default(draft) add gh | 1224 | o 18:5f8a4fc86068@default(draft) add gh |
1225 | | | 1225 | | |
1226 o | 17:98e171e2f272@default(draft) add gg | 1226 o | 17:a38ac764661b@default(draft) add gg |
1227 |/ | 1227 |/ |
1228 o 16:0cf3707e8971@default(draft) a3 | 1228 o 16:5478ae0ce2d9@default(draft) a3 |
1229 | | 1229 | |
1230 ~ | 1230 ~ |
1231 | 1231 |
1232 $ hg evolve --rev 89e4f7e8feb5 --any | 1232 $ hg evolve --rev 677a629bd09c --any |
1233 abort: cannot specify both "--rev" and "--any" | 1233 abort: cannot specify both "--rev" and "--any" |
1234 [255] | 1234 [255] |
1235 $ hg evolve --rev 89e4f7e8feb5 | 1235 $ hg evolve --rev 677a629bd09c |
1236 skipping 89e4f7e8feb5, consider including orphan ancestors | 1236 skipping 677a629bd09c, consider including orphan ancestors |
1237 | 1237 |
1238 Check that uncommit respects the allowunstable option | 1238 Check that uncommit respects the allowunstable option |
1239 With only createmarkers we can only uncommit on a head | 1239 With only createmarkers we can only uncommit on a head |
1240 $ cat >> $HGRCPATH <<EOF | 1240 $ cat >> $HGRCPATH <<EOF |
1241 > [experimental] | 1241 > [experimental] |
1242 > evolution=createmarkers, allnewcommands | 1242 > evolution=createmarkers, allnewcommands |
1243 > EOF | 1243 > EOF |
1244 $ hg up 274b6cd0c101^ | 1244 $ hg up cc75952078c6^ |
1245 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 1245 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1246 $ hg uncommit --all | 1246 $ hg uncommit --all |
1247 abort: uncommit will orphan 4 descendants | 1247 abort: cannot uncommit changeset, as that will orphan 4 descendants |
1248 (see 'hg help evolution.instability') | 1248 (see 'hg help evolution.instability') |
1249 [255] | 1249 [255] |
1250 $ hg up 274b6cd0c101 | 1250 $ hg up cc75952078c6 |
1251 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1251 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1252 $ hg uncommit --all | 1252 $ hg uncommit --all |
1253 new changeset is empty | 1253 new changeset is empty |
1254 (use 'hg prune .' to remove it) | 1254 (use 'hg prune .' to remove it) |
1255 $ glog -r "0cf3707e8971::" | 1255 $ glog -r "5478ae0ce2d9::" |
1256 @ 23:0ef9ff75f8e2@default(draft) add j1 | 1256 @ 23:4086309bffa5@default(draft) add j1 |
1257 | | 1257 | |
1258 | * 21:89e4f7e8feb5@default(draft) add j3 | 1258 | * 21:677a629bd09c@default(draft) add j3 |
1259 | | | 1259 | | |
1260 | * 20:4cd61236beca@default(draft) add j2 | 1260 | * 20:0208ef487f3a@default(draft) add j2 |
1261 | | | 1261 | | |
1262 | x 19:0fd8bfb02de4@default(draft) add j1 | 1262 | x 19:30d3ac01aa58@default(draft) add j1 |
1263 |/ | 1263 |/ |
1264 | o 18:0c049e4e5422@default(draft) add gh | 1264 | o 18:5f8a4fc86068@default(draft) add gh |
1265 | | | 1265 | | |
1266 o | 17:98e171e2f272@default(draft) add gg | 1266 o | 17:a38ac764661b@default(draft) add gg |
1267 |/ | 1267 |/ |
1268 o 16:0cf3707e8971@default(draft) a3 | 1268 o 16:5478ae0ce2d9@default(draft) a3 |
1269 | | 1269 | |
1270 ~ | 1270 ~ |
1271 | 1271 |
1272 Check that prune respects the allowunstable option | 1272 Check that prune respects the allowunstable option |
1273 $ hg up -C . | 1273 $ hg up -C . |
1274 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1274 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1275 $ hg up 0c049e4e5422 | 1275 $ hg up 5f8a4fc86068 |
1276 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1276 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1277 $ hg evolve --all | 1277 $ hg evolve --all |
1278 nothing to evolve on current working copy parent | 1278 nothing to evolve on current working copy parent |
1279 (2 other orphan in the repository, do you want --any or --rev) | 1279 (2 other orphan in the repository, do you want --any or --rev) |
1280 [2] | 1280 [2] |
1281 $ hg evolve --all --any | 1281 $ hg evolve --all --any |
1282 move:[20] add j2 | 1282 move:[20] add j2 |
1283 atop:[23] add j1 | 1283 atop:[23] add j1 |
1284 move:[21] add j3 | 1284 move:[21] add j3 |
1285 $ glog -r "0cf3707e8971::" | 1285 $ glog -r "5478ae0ce2d9::" |
1286 o 25:0d9203b74542@default(draft) add j3 | 1286 o 25:bc61f0de3ab8@default(draft) add j3 |
1287 | | 1287 | |
1288 o 24:f1b85956c48c@default(draft) add j2 | 1288 o 24:57c9733eb876@default(draft) add j2 |
1289 | | 1289 | |
1290 o 23:0ef9ff75f8e2@default(draft) add j1 | 1290 o 23:4086309bffa5@default(draft) add j1 |
1291 | | 1291 | |
1292 | @ 18:0c049e4e5422@default(draft) add gh | 1292 | @ 18:5f8a4fc86068@default(draft) add gh |
1293 | | | 1293 | | |
1294 o | 17:98e171e2f272@default(draft) add gg | 1294 o | 17:a38ac764661b@default(draft) add gg |
1295 |/ | 1295 |/ |
1296 o 16:0cf3707e8971@default(draft) a3 | 1296 o 16:5478ae0ce2d9@default(draft) a3 |
1297 | | 1297 | |
1298 ~ | 1298 ~ |
1299 $ hg up 98e171e2f272 | 1299 $ hg up a38ac764661b |
1300 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1300 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1301 $ mkcommit c5_ | 1301 $ mkcommit c5_ |
1302 created new head | 1302 created new head |
1303 $ hg prune '0ef9ff75f8e2 + f1b85956c48c' | 1303 $ hg prune '4086309bffa5 + 57c9733eb876' |
1304 abort: prune will orphan 1 descendants | 1304 abort: cannot prune changeset, as that will orphan 1 descendants |
1305 (see 'hg help evolution.instability') | 1305 (see 'hg help evolution.instability') |
1306 [255] | 1306 [255] |
1307 $ hg prune '98e171e2f272::0d9203b74542' | 1307 $ hg prune 'a38ac764661b::bc61f0de3ab8' |
1308 abort: prune will orphan 1 descendants | 1308 abort: cannot prune changeset, as that will orphan 1 descendants |
1309 (see 'hg help evolution.instability') | 1309 (see 'hg help evolution.instability') |
1310 [255] | 1310 [255] |
1311 $ hg prune '0ef9ff75f8e2::' | 1311 $ hg prune '4086309bffa5::' |
1312 3 changesets pruned | 1312 3 changesets pruned |
1313 $ glog -r "0cf3707e8971::" | 1313 $ glog -r "5478ae0ce2d9::" |
1314 @ 26:4c6f6f6d1976@default(draft) add c5_ | 1314 @ 26:0ea0aab97a68@default(draft) add c5_ |
1315 | | 1315 | |
1316 | o 18:0c049e4e5422@default(draft) add gh | 1316 | o 18:5f8a4fc86068@default(draft) add gh |
1317 | | | 1317 | | |
1318 o | 17:98e171e2f272@default(draft) add gg | 1318 o | 17:a38ac764661b@default(draft) add gg |
1319 |/ | 1319 |/ |
1320 o 16:0cf3707e8971@default(draft) a3 | 1320 o 16:5478ae0ce2d9@default(draft) a3 |
1321 | | 1321 | |
1322 ~ | 1322 ~ |
1323 | 1323 |
1324 Check that fold respects the allowunstable option | 1324 Check that fold respects the allowunstable option |
1325 | 1325 |
1326 (most of this has been moved to test-fold.t) | 1326 (most of this has been moved to test-fold.t) |
1327 | 1327 |
1328 $ hg up 0cf3707e8971 | 1328 $ hg up 5478ae0ce2d9 |
1329 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 1329 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1330 $ mkcommit unstableifparentisfolded | 1330 $ mkcommit unstableifparentisfolded |
1331 created new head | 1331 created new head |
1332 $ glog -r "0cf3707e8971::" | 1332 $ glog -r "5478ae0ce2d9::" |
1333 @ 27:2d1b55e10be9@default(draft) add unstableifparentisfolded | 1333 @ 27:a590ee1f960d@default(draft) add unstableifparentisfolded |
1334 | | 1334 | |
1335 | o 26:4c6f6f6d1976@default(draft) add c5_ | 1335 | o 26:0ea0aab97a68@default(draft) add c5_ |
1336 | | | 1336 | | |
1337 +---o 18:0c049e4e5422@default(draft) add gh | 1337 +---o 18:5f8a4fc86068@default(draft) add gh |
1338 | | | 1338 | | |
1339 | o 17:98e171e2f272@default(draft) add gg | 1339 | o 17:a38ac764661b@default(draft) add gg |
1340 |/ | 1340 |/ |
1341 o 16:0cf3707e8971@default(draft) a3 | 1341 o 16:5478ae0ce2d9@default(draft) a3 |
1342 | | 1342 | |
1343 ~ | 1343 ~ |
1344 | 1344 |
1345 $ hg fold --exact "98e171e2f272::" | 1345 $ hg fold --exact "a38ac764661b::" |
1346 2 changesets folded | 1346 2 changesets folded |
1347 | 1347 |
1348 Check that dirstate changes are kept at failure for conflicts (issue4966) | 1348 Check that dirstate changes are kept at failure for conflicts (issue4966) |
1349 ---------------------------------------- | 1349 ---------------------------------------- |
1350 | 1350 |
1364 $ echo "will cause conflict at evolve" > newfile | 1364 $ echo "will cause conflict at evolve" > newfile |
1365 $ echo "newly added" > newlyadded | 1365 $ echo "newly added" > newlyadded |
1366 $ hg add newlyadded | 1366 $ hg add newlyadded |
1367 $ hg commit -m "will cause conflict at evolve" | 1367 $ hg commit -m "will cause conflict at evolve" |
1368 | 1368 |
1369 $ glog -r "0cf3707e8971::" | 1369 $ glog -r "5478ae0ce2d9::" |
1370 @ 31:5be050657ca5@default(draft) will cause conflict at evolve | 1370 @ 31:835945a2b5c1@default(draft) will cause conflict at evolve |
1371 | | 1371 | |
1372 o 30:748126f98ff1@default(draft) will be evolved safely | 1372 o 30:c4fb0d23465b@default(draft) will be evolved safely |
1373 | | 1373 | |
1374 o 29:4548f3a8db2c@default(draft) will be amended | 1374 o 29:45e2cc1499ee@default(draft) will be amended |
1375 | | 1375 | |
1376 | o 28:92ca6f3984de@default(draft) add gg | 1376 | o 28:7992c4aad71c@default(draft) add gg |
1377 | | | 1377 | | |
1378 o | 27:2d1b55e10be9@default(draft) add unstableifparentisfolded | 1378 o | 27:a590ee1f960d@default(draft) add unstableifparentisfolded |
1379 |/ | 1379 |/ |
1380 | o 18:0c049e4e5422@default(draft) add gh | 1380 | o 18:5f8a4fc86068@default(draft) add gh |
1381 |/ | 1381 |/ |
1382 o 16:0cf3707e8971@default(draft) a3 | 1382 o 16:5478ae0ce2d9@default(draft) a3 |
1383 | | 1383 | |
1384 ~ | 1384 ~ |
1385 | 1385 |
1386 $ hg update -q -r "desc('will be amended')" | 1386 $ hg update -q -r "desc('will be amended')" |
1387 $ echo "amended" > newfile | 1387 $ echo "amended" > newfile |
1397 unresolved merge conflicts | 1397 unresolved merge conflicts |
1398 (see 'hg help evolve.interrupted') | 1398 (see 'hg help evolve.interrupted') |
1399 [1] | 1399 [1] |
1400 | 1400 |
1401 $ glog -r "desc('add unstableifparentisfolded')::" --hidden | 1401 $ glog -r "desc('add unstableifparentisfolded')::" --hidden |
1402 @ 33:b9acdb1af6d5@default(draft) will be evolved safely | 1402 @ 33:bdb2d79645eb@default(draft) will be evolved safely |
1403 | | 1403 | |
1404 o 32:6ec468e4cb98@default(draft) amended | 1404 o 32:d788a38aecda@default(draft) amended |
1405 | | 1405 | |
1406 | * 31:5be050657ca5@default(draft) will cause conflict at evolve | 1406 | * 31:835945a2b5c1@default(draft) will cause conflict at evolve |
1407 | | | 1407 | | |
1408 | x 30:748126f98ff1@default(draft) will be evolved safely | 1408 | x 30:c4fb0d23465b@default(draft) will be evolved safely |
1409 | | | 1409 | | |
1410 | x 29:4548f3a8db2c@default(draft) will be amended | 1410 | x 29:45e2cc1499ee@default(draft) will be amended |
1411 |/ | 1411 |/ |
1412 o 27:2d1b55e10be9@default(draft) add unstableifparentisfolded | 1412 o 27:a590ee1f960d@default(draft) add unstableifparentisfolded |
1413 | | 1413 | |
1414 ~ | 1414 ~ |
1415 | 1415 |
1416 $ hg status newlyadded | 1416 $ hg status newlyadded |
1417 A newlyadded | 1417 A newlyadded |