342 |
342 |
343 |
343 |
344 (amend of on ancestors) |
344 (amend of on ancestors) |
345 |
345 |
346 $ hg amend |
346 $ hg amend |
347 1 new orphan changesets |
347 1 new unstable changesets |
348 $ hg log |
348 $ hg log |
349 4 feature-A: a nifty feature - test |
349 6 feature-A: a nifty feature - test |
350 3 feature-B: another feature (child of 568a468b60fc) - test |
350 4 feature-B: another feature (child of 568a468b60fc) - test |
351 1 : a nifty feature - test |
351 1 : a nifty feature - test |
352 0 : base - test |
352 0 : base - test |
353 $ hg up -q 0 |
353 $ hg up -q 0 |
354 $ glog --hidden |
354 $ glog --hidden |
355 o 4:ba0ec09b1bab@default(draft) a nifty feature |
355 o 6:ba0ec09b1bab@default(draft) a nifty feature |
356 | |
356 | |
357 | o 3:6992c59c6b06@default(draft) another feature (child of 568a468b60fc) |
357 | x 5:c296b79833d1@default(draft) temporary amend commit for 568a468b60fc |
358 | | |
358 | | |
|
359 | | o 4:6992c59c6b06@default(draft) another feature (child of 568a468b60fc) |
|
360 | |/ |
|
361 | | x 3:c97947cdc7a2@default(draft) temporary amend commit for 73296a82292a |
|
362 | | | |
359 | | x 2:73296a82292a@default(draft) another feature (child of 568a468b60fc) |
363 | | x 2:73296a82292a@default(draft) another feature (child of 568a468b60fc) |
360 | |/ |
364 | |/ |
361 | x 1:568a468b60fc@default(draft) a nifty feature |
365 | x 1:568a468b60fc@default(draft) a nifty feature |
362 |/ |
366 |/ |
363 @ 0:e55e0562ee93@default(public) base |
367 @ 0:e55e0562ee93@default(public) base |
364 |
368 |
365 $ hg debugobsolete |
369 $ hg debugobsolete |
366 73296a82292a76fb8a7061969d2489ec0d84cd5e 6992c59c6b06a1b4a92e24ff884829ae026d018b 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} |
370 73296a82292a76fb8a7061969d2489ec0d84cd5e 6992c59c6b06a1b4a92e24ff884829ae026d018b 0 (*) {'ef1': '8', 'user': 'test'} (glob) |
367 568a468b60fc99a42d5d4ddbe181caff1eef308d ba0ec09b1babf3489b567853807f452edd46704f 0 (Thu Jan 01 00:00:00 1970 +0000) {'ef1': '8', 'operation': 'amend', 'user': 'test'} |
371 c97947cdc7a2a11cf78419f5c2c3dd3944ec79e8 0 {73296a82292a76fb8a7061969d2489ec0d84cd5e} (*) {'ef1': '0', 'user': 'test'} (glob) |
|
372 568a468b60fc99a42d5d4ddbe181caff1eef308d ba0ec09b1babf3489b567853807f452edd46704f 0 (*) {'ef1': '8', 'user': 'test'} (glob) |
|
373 c296b79833d1d497f33144786174bf35e04e44a3 0 {568a468b60fc99a42d5d4ddbe181caff1eef308d} (*) {'ef1': '0', 'user': 'test'} (glob) |
368 $ hg evolve |
374 $ hg evolve |
369 move:[3] another feature (child of 568a468b60fc) |
375 move:[4] another feature (child of 568a468b60fc) |
370 atop:[4] a nifty feature |
376 atop:[6] a nifty feature |
371 merging main-file-1 |
377 merging main-file-1 |
372 working directory is now at 99833d22b0c6 |
378 working directory is now at 99833d22b0c6 |
373 $ hg log |
379 $ hg log |
374 5 feature-B: another feature (child of ba0ec09b1bab) - test |
380 7 feature-B: another feature (child of ba0ec09b1bab) - test |
375 4 feature-A: a nifty feature - test |
381 6 feature-A: a nifty feature - test |
376 0 : base - test |
382 0 : base - test |
377 |
383 |
378 Test commit -o options |
384 Test commit -o options |
379 |
385 |
380 $ hg up -r "desc('a nifty feature')" |
386 $ hg up -r "desc('a nifty feature')" |
381 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
387 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
382 $ hg revert -r "desc('another feature')" --all |
388 $ hg revert -r "desc('another feature')" --all |
383 adding file-from-B |
389 adding file-from-B |
384 reverting main-file-1 |
390 reverting main-file-1 |
385 $ sed -i'' -e s/Zwei/deux/ main-file-1 |
391 $ sed -i'' -e s/Zwei/deux/ main-file-1 |
386 $ hg commit -m 'another feature that rox' -o 5 |
392 $ hg commit -m 'another feature that rox' -o 7 |
387 created new head |
393 created new head |
388 $ hg log |
394 $ hg log |
389 6 feature-B: another feature that rox - test |
395 8 feature-B: another feature that rox - test |
390 4 feature-A: a nifty feature - test |
396 6 feature-A: a nifty feature - test |
391 0 : base - test |
397 0 : base - test |
392 |
398 |
393 phase change turning obsolete changeset public issue a bumped warning |
399 phase change turning obsolete changeset public issue a bumped warning |
394 |
400 |
395 $ hg phase --hidden --public 99833d22b0c6 |
401 $ hg phase --hidden --public 99833d22b0c6 |
396 1 new phase-divergent changesets |
402 1 new bumped changesets |
397 |
403 |
398 all solving bumped troubled |
404 all solving bumped troubled |
399 |
405 |
400 $ glog |
406 $ hg log -G |
401 @ 6:47d52a103155@default(draft) another feature that rox |
407 @ 8 feature-B: another feature that rox - test |
402 | |
408 | |
403 | o 5:99833d22b0c6@default(public) another feature (child of ba0ec09b1bab) |
409 | o 7 : another feature (child of ba0ec09b1bab) - test |
404 |/ |
410 |/ |
405 o 4:ba0ec09b1bab@default(public) a nifty feature |
411 o 6 feature-A: a nifty feature - test |
406 | |
412 | |
407 o 0:e55e0562ee93@default(public) base |
413 o 0 : base - test |
408 |
414 |
409 $ hg evolve --any --traceback --phase-divergent |
415 $ hg evolve --any --traceback --phase-divergent |
410 recreate:[6] another feature that rox |
416 recreate:[8] another feature that rox |
411 atop:[5] another feature (child of ba0ec09b1bab) |
417 atop:[7] another feature (child of ba0ec09b1bab) |
412 computing new diff |
418 computing new diff |
413 committed as aca219761afb |
419 committed as 6707c5e1c49d |
414 working directory is now at aca219761afb |
420 working directory is now at 6707c5e1c49d |
415 $ glog |
421 $ hg log -G |
416 @ 7:aca219761afb@default(draft) phase-divergent update to 99833d22b0c6: |
422 @ 9 feature-B: bumped update to 99833d22b0c6: - test |
417 | |
423 | |
418 o 5:99833d22b0c6@default(public) another feature (child of ba0ec09b1bab) |
424 o 7 : another feature (child of ba0ec09b1bab) - test |
419 | |
425 | |
420 o 4:ba0ec09b1bab@default(public) a nifty feature |
426 o 6 feature-A: a nifty feature - test |
421 | |
427 | |
422 o 0:e55e0562ee93@default(public) base |
428 o 0 : base - test |
423 |
429 |
424 $ hg diff --hidden -r aca219761afb -r 47d52a103155 |
430 $ hg diff --hidden -r 6707c5e1c49d -r 47d52a103155 |
425 $ hg diff -r aca219761afb^ -r aca219761afb |
431 $ hg diff -r 6707c5e1c49d^ -r 6707c5e1c49d |
426 diff --git a/main-file-1 b/main-file-1 |
432 diff --git a/main-file-1 b/main-file-1 |
427 --- a/main-file-1 |
433 --- a/main-file-1 |
428 +++ b/main-file-1 |
434 +++ b/main-file-1 |
429 @@ -3,1 +3,1 @@ |
435 @@ -3,1 +3,1 @@ |
430 -Zwei |
436 -Zwei |
1006 $ hg up -r "desc('a1__')" |
1008 $ hg up -r "desc('a1__')" |
1007 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1009 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1008 $ hg revert -r d952e93add6f --all |
1010 $ hg revert -r d952e93add6f --all |
1009 reverting a |
1011 reverting a |
1010 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' |
1012 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' |
1011 o 10 [mybranch] a2 |
1013 o 11 [mybranch] a2 |
1012 | |
1014 | |
1013 @ 9 [default] a1__ |
1015 @ 10 [default] a1__ |
1014 | |
1016 | |
1015 | o 8 [mybranch] a3 |
1017 | o 9 [mybranch] a3 |
1016 | | |
1018 | | |
1017 | x 7 [mybranch] a2 |
1019 | x 8 [mybranch] a2 |
1018 | | |
1020 | | |
1019 | x 6 [default] a1_ |
1021 | x 7 [default] a1_ |
1020 |/ |
1022 |/ |
1021 o 0 [default] a0 |
1023 o 0 [default] a0 |
1022 |
1024 |
1023 $ echo "hello world" > newfile |
1025 $ echo "hello world" > newfile |
1024 $ hg add newfile |
1026 $ hg add newfile |
1025 $ hg commit -m "add new file bumped" -o 10 |
1027 $ hg commit -m "add new file bumped" -o 11 |
1026 $ hg phase --public --hidden d952e93add6f |
1028 $ hg phase --public --hidden d952e93add6f |
1027 1 new phase-divergent changesets |
1029 1 new bumped changesets |
1028 $ hg log -G |
1030 $ hg log -G |
1029 @ 11 : add new file bumped - test |
1031 @ 12 : add new file bumped - test |
1030 | |
1032 | |
1031 | o 10 : a2 - test |
1033 | o 11 : a2 - test |
1032 |/ |
1034 |/ |
1033 o 9 testbookmark: a1__ - test |
1035 o 10 testbookmark: a1__ - test |
1034 | |
1036 | |
1035 | o 8 : a3 - test |
1037 | o 9 : a3 - test |
1036 | | |
1038 | | |
1037 | x 7 : a2 - test |
1039 | x 8 : a2 - test |
1038 | | |
1040 | | |
1039 | x 6 : a1_ - test |
1041 | x 7 : a1_ - test |
1040 |/ |
1042 |/ |
1041 o 0 : a0 - test |
1043 o 0 : a0 - test |
1042 |
1044 |
1043 |
1045 |
1044 Now we have a bumped and an unstable changeset, we solve the bumped first |
1046 Now we have a bumped and an unstable changeset, we solve the bumped first |
1045 normally the unstable changeset would be solve first |
1047 normally the unstable changeset would be solve first |
1046 |
1048 |
1047 $ hg log -G |
1049 $ hg log -G |
1048 @ 11 : add new file bumped - test |
1050 @ 12 : add new file bumped - test |
1049 | |
1051 | |
1050 | o 10 : a2 - test |
1052 | o 11 : a2 - test |
1051 |/ |
1053 |/ |
1052 o 9 testbookmark: a1__ - test |
1054 o 10 testbookmark: a1__ - test |
1053 | |
1055 | |
1054 | o 8 : a3 - test |
1056 | o 9 : a3 - test |
1055 | | |
1057 | | |
1056 | x 7 : a2 - test |
1058 | x 8 : a2 - test |
1057 | | |
1059 | | |
1058 | x 6 : a1_ - test |
1060 | x 7 : a1_ - test |
1059 |/ |
1061 |/ |
1060 o 0 : a0 - test |
1062 o 0 : a0 - test |
1061 |
1063 |
1062 $ hg evolve -r "desc('add new file bumped')" --phase-divergent |
1064 $ hg evolve -r "desc('add new file bumped')" --phase-divergent |
1063 recreate:[11] add new file bumped |
1065 recreate:[12] add new file bumped |
1064 atop:[10] a2 |
1066 atop:[11] a2 |
1065 computing new diff |
1067 computing new diff |
1066 committed as a8bb31d4b7f2 |
1068 committed as f15d32934071 |
1067 working directory is now at a8bb31d4b7f2 |
1069 working directory is now at f15d32934071 |
1068 $ hg evolve --any |
1070 $ hg evolve --any |
1069 move:[8] a3 |
1071 move:[9] a3 |
1070 atop:[12] phase-divergent update to d952e93add6f: |
1072 atop:[13] bumped update to d952e93add6f: |
1071 working directory is now at b88539ad24d7 |
1073 working directory is now at cce26b684bfe |
1072 $ glog |
|
1073 @ 13:b88539ad24d7@default(draft) a3 |
|
1074 | |
|
1075 o 12:a8bb31d4b7f2@default(draft) phase-divergent update to d952e93add6f: |
|
1076 | |
|
1077 o 10:d952e93add6f@mybranch(public) a2 |
|
1078 | |
|
1079 o 9:9f8b83c2e7f3@default(public) a1__ |
|
1080 | |
|
1081 o 0:07c1c36d9ef0@default(public) a0 |
|
1082 |
|
1083 |
|
1084 Check that we can resolve troubles in a revset with more than one commit |
1074 Check that we can resolve troubles in a revset with more than one commit |
1085 $ hg up b88539ad24d7 -C |
1075 $ hg up cce26b684bfe -C |
1086 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1076 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1087 $ mkcommit gg |
1077 $ mkcommit gg |
1088 $ hg up b88539ad24d7 |
1078 $ hg up cce26b684bfe |
1089 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1079 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1090 $ mkcommit gh |
1080 $ mkcommit gh |
1091 created new head |
1081 created new head |
1092 $ hg up b88539ad24d7 |
1082 $ hg up cce26b684bfe |
1093 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1083 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1094 $ printf "newline\nnewline\n" >> a |
1084 $ printf "newline\nnewline\n" >> a |
1095 $ hg log -G |
1085 $ hg log -G |
1096 o 15 : add gh - test |
1086 o 16 : add gh - test |
1097 | |
1087 | |
1098 | o 14 : add gg - test |
1088 | o 15 : add gg - test |
1099 |/ |
1089 |/ |
1100 @ 13 : a3 - test |
1090 @ 14 : a3 - test |
1101 | |
1091 | |
1102 o 12 : phase-divergent update to d952e93add6f: - test |
1092 o 13 : bumped update to d952e93add6f: - test |
1103 | |
1093 | |
1104 o 10 : a2 - test |
1094 o 11 : a2 - test |
1105 | |
1095 | |
1106 o 9 testbookmark: a1__ - test |
1096 o 10 testbookmark: a1__ - test |
1107 | |
1097 | |
1108 o 0 : a0 - test |
1098 o 0 : a0 - test |
1109 |
1099 |
1110 $ hg amend |
1100 $ hg amend |
1111 2 new orphan changesets |
1101 2 new unstable changesets |
1112 $ glog |
1102 $ hg log -G |
1113 @ 16:0cf3707e8971@default(draft) a3 |
1103 @ 18 : a3 - test |
1114 | |
1104 | |
1115 | o 15:daa1ff1c7fbd@default(draft) add gh |
1105 | o 16 : add gh - test |
1116 | | |
1106 | | |
1117 | | o 14:484fb3cfa7f2@default(draft) add gg |
1107 | | o 15 : add gg - test |
1118 | |/ |
1108 | |/ |
1119 | x 13:b88539ad24d7@default(draft) a3 |
1109 | x 14 : a3 - test |
1120 |/ |
1110 |/ |
1121 o 12:a8bb31d4b7f2@default(draft) phase-divergent update to d952e93add6f: |
1111 o 13 : bumped update to d952e93add6f: - test |
1122 | |
1112 | |
1123 o 10:d952e93add6f@mybranch(public) a2 |
1113 o 11 : a2 - test |
1124 | |
1114 | |
1125 o 9:9f8b83c2e7f3@default(public) a1__ |
1115 o 10 testbookmark: a1__ - test |
1126 | |
1116 | |
1127 o 0:07c1c36d9ef0@default(public) a0 |
1117 o 0 : a0 - test |
1128 |
1118 |
1129 |
1119 |
1130 Evolving an empty revset should do nothing |
1120 Evolving an empty revset should do nothing |
1131 $ hg evolve --rev "daa1ff1c7fbd and 484fb3cfa7f2" |
1121 $ hg evolve --rev "beb41503aa3e and 27247fcb2df6" |
1132 set of specified revisions is empty |
1122 set of specified revisions is empty |
1133 [1] |
1123 [1] |
1134 |
1124 |
1135 $ hg evolve --rev "b88539ad24d7::" --phase-divergent |
1125 $ hg evolve --rev "cce26b684bfe::" --phase-divergent |
1136 no phasedivergent changesets in specified revisions |
1126 no phasedivergent changesets in specified revisions |
1137 (do you want to use --orphan) |
1127 (do you want to use --orphan) |
1138 [2] |
1128 [2] |
1139 $ hg evolve --rev "b88539ad24d7::" --orphan |
1129 $ hg evolve --rev "cce26b684bfe::" --orphan |
1140 move:[14] add gg |
1130 move:[15] add gg |
1141 atop:[16] a3 |
1131 atop:[18] a3 |
1142 move:[15] add gh |
1132 move:[16] add gh |
1143 atop:[16] a3 |
1133 atop:[18] a3 |
1144 working directory is now at 0c049e4e5422 |
1134 working directory is now at e02107f98737 |
1145 $ glog |
1135 $ hg log -G |
1146 @ 18:0c049e4e5422@default(draft) add gh |
1136 @ 20 : add gh - test |
1147 | |
1137 | |
1148 | o 17:98e171e2f272@default(draft) add gg |
1138 | o 19 : add gg - test |
1149 |/ |
1139 |/ |
1150 o 16:0cf3707e8971@default(draft) a3 |
1140 o 18 : a3 - test |
1151 | |
1141 | |
1152 o 12:a8bb31d4b7f2@default(draft) phase-divergent update to d952e93add6f: |
1142 o 13 : bumped update to d952e93add6f: - test |
1153 | |
1143 | |
1154 o 10:d952e93add6f@mybranch(public) a2 |
1144 o 11 : a2 - test |
1155 | |
1145 | |
1156 o 9:9f8b83c2e7f3@default(public) a1__ |
1146 o 10 testbookmark: a1__ - test |
1157 | |
1147 | |
1158 o 0:07c1c36d9ef0@default(public) a0 |
1148 o 0 : a0 - test |
1159 |
1149 |
1160 Enabling commands selectively, no command enabled, next and fold and unknown |
1150 Enabling commands selectively, no command enabled, next and fold and unknown |
1161 $ cat >> $HGRCPATH <<EOF |
1151 $ cat >> $HGRCPATH <<EOF |
1162 > [experimental] |
1152 > [experimental] |
1163 > evolution=createmarkers |
1153 > evolution=createmarkers |
1252 [255] |
1242 [255] |
1253 |
1243 |
1254 Shows "use 'hg evolve' to..." hints iff the evolve command is enabled |
1244 Shows "use 'hg evolve' to..." hints iff the evolve command is enabled |
1255 |
1245 |
1256 $ hg --hidden up 14 |
1246 $ hg --hidden up 14 |
1257 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1247 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1258 working directory parent is obsolete! (484fb3cfa7f2) |
1248 working directory parent is obsolete! (cce26b684bfe) |
1259 $ cat >> $HGRCPATH <<EOF |
1249 $ cat >> $HGRCPATH <<EOF |
1260 > [experimental] |
1250 > [experimental] |
1261 > evolutioncommands=evolve |
1251 > evolutioncommands=evolve |
1262 > EOF |
1252 > EOF |
1263 $ hg --hidden up 15 |
1253 $ hg --hidden up 15 |
1264 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1254 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1265 working directory parent is obsolete! (daa1ff1c7fbd) |
1255 working directory parent is obsolete! (27247fcb2df6) |
1266 (use 'hg evolve' to update to its successor: 0c049e4e5422) |
1256 (use 'hg evolve' to update to its successor: 24e63b319adf) |
1267 |
1257 |
1268 Restore all of the evolution features |
1258 Restore all of the evolution features |
1269 |
1259 |
1270 $ cat >> $HGRCPATH <<EOF |
1260 $ cat >> $HGRCPATH <<EOF |
1271 > [experimental] |
1261 > [experimental] |
1272 > evolution=all |
1262 > evolution=all |
1273 > EOF |
1263 > EOF |
1274 |
1264 |
1275 Check hg evolve --rev on singled out commit |
1265 Check hg evolve --rev on singled out commit |
1276 $ hg up 98e171e2f272 -C |
1266 $ hg up 24e63b319adf -C |
1277 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1267 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1278 $ mkcommit j1 |
1268 $ mkcommit j1 |
1279 $ mkcommit j2 |
1269 $ mkcommit j2 |
1280 $ mkcommit j3 |
1270 $ mkcommit j3 |
1281 $ hg up .^^ |
1271 $ hg up .^^ |
1282 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1272 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1283 $ echo "hello" > j4 |
1273 $ echo "hello" > j4 |
1284 $ hg add j4 |
1274 $ hg add j4 |
1285 $ hg amend |
1275 $ hg amend |
1286 2 new orphan changesets |
1276 2 new unstable changesets |
1287 $ glog -r "0cf3707e8971::" |
1277 $ glog -r "edc3c9de504e::" |
1288 @ 22:274b6cd0c101@default(draft) add j1 |
1278 @ 25:8dc373be86d9@default(draft) add j1 |
1289 | |
1279 | |
1290 | o 21:89e4f7e8feb5@default(draft) add j3 |
1280 | o 23:d7eadcf6eccd@default(draft) add j3 |
1291 | | |
1281 | | |
1292 | o 20:4cd61236beca@default(draft) add j2 |
1282 | o 22:2223ea564144@default(draft) add j2 |
1293 | | |
1283 | | |
1294 | x 19:0fd8bfb02de4@default(draft) add j1 |
1284 | x 21:48490698b269@default(draft) add j1 |
1295 |/ |
1285 |/ |
1296 | o 18:0c049e4e5422@default(draft) add gh |
1286 | o 20:e02107f98737@default(draft) add gh |
1297 | | |
1287 | | |
1298 o | 17:98e171e2f272@default(draft) add gg |
1288 o | 19:24e63b319adf@default(draft) add gg |
1299 |/ |
1289 |/ |
1300 o 16:0cf3707e8971@default(draft) a3 |
1290 o 18:edc3c9de504e@default(draft) a3 |
1301 | |
1291 | |
1302 ~ |
1292 ~ |
1303 |
1293 |
1304 $ hg evolve --rev 89e4f7e8feb5 --any |
1294 $ hg evolve --rev d7eadcf6eccd --any |
1305 abort: cannot specify both "--rev" and "--any" |
1295 abort: cannot specify both "--rev" and "--any" |
1306 [255] |
1296 [255] |
1307 $ hg evolve --rev 89e4f7e8feb5 |
1297 $ hg evolve --rev d7eadcf6eccd |
1308 cannot solve instability of 89e4f7e8feb5, skipping |
1298 cannot solve instability of d7eadcf6eccd, skipping |
1309 |
1299 |
1310 Check that uncommit respects the allowunstable option |
1300 Check that uncommit respects the allowunstable option |
1311 With only createmarkers we can only uncommit on a head |
1301 With only createmarkers we can only uncommit on a head |
1312 $ cat >> $HGRCPATH <<EOF |
1302 $ cat >> $HGRCPATH <<EOF |
1313 > [experimental] |
1303 > [experimental] |
1314 > evolution=createmarkers, allnewcommands |
1304 > evolution=createmarkers, allnewcommands |
1315 > EOF |
1305 > EOF |
1316 $ hg up 274b6cd0c101^ |
1306 $ hg up 8dc373be86d9^ |
1317 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1307 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1318 $ hg uncommit --all |
1308 $ hg uncommit --all |
1319 abort: uncommit will orphan 4 descendants |
1309 abort: uncommit will orphan 4 descendants |
1320 (see 'hg help evolution.instability') |
1310 (see 'hg help evolution.instability') |
1321 [255] |
1311 [255] |
1322 $ hg up 274b6cd0c101 |
1312 $ hg up 8dc373be86d9 |
1323 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1313 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1324 $ hg uncommit --all |
1314 $ hg uncommit --all |
1325 new changeset is empty |
1315 new changeset is empty |
1326 (use 'hg prune .' to remove it) |
1316 (use 'hg prune .' to remove it) |
1327 $ glog -r "0cf3707e8971::" |
1317 $ glog -r "edc3c9de504e::" |
1328 @ 23:0ef9ff75f8e2@default(draft) add j1 |
1318 @ 26:044804d0c10d@default(draft) add j1 |
1329 | |
1319 | |
1330 | o 21:89e4f7e8feb5@default(draft) add j3 |
1320 | o 23:d7eadcf6eccd@default(draft) add j3 |
1331 | | |
1321 | | |
1332 | o 20:4cd61236beca@default(draft) add j2 |
1322 | o 22:2223ea564144@default(draft) add j2 |
1333 | | |
1323 | | |
1334 | x 19:0fd8bfb02de4@default(draft) add j1 |
1324 | x 21:48490698b269@default(draft) add j1 |
1335 |/ |
1325 |/ |
1336 | o 18:0c049e4e5422@default(draft) add gh |
1326 | o 20:e02107f98737@default(draft) add gh |
1337 | | |
1327 | | |
1338 o | 17:98e171e2f272@default(draft) add gg |
1328 o | 19:24e63b319adf@default(draft) add gg |
1339 |/ |
1329 |/ |
1340 o 16:0cf3707e8971@default(draft) a3 |
1330 o 18:edc3c9de504e@default(draft) a3 |
1341 | |
1331 | |
1342 ~ |
1332 ~ |
1343 |
1333 |
1344 Check that prune respects the allowunstable option |
1334 Check that prune respects the allowunstable option |
1345 $ hg up -C . |
1335 $ hg up -C . |
1346 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1336 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1347 $ hg up 0c049e4e5422 |
1337 $ hg up e02107f98737 |
1348 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1338 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1349 $ hg evolve --all |
1339 $ hg evolve --all |
1350 nothing to evolve on current working copy parent |
1340 nothing to evolve on current working copy parent |
1351 (2 other orphan in the repository, do you want --any or --rev) |
1341 (2 other orphan in the repository, do you want --any or --rev) |
1352 [2] |
1342 [2] |
1353 $ hg evolve --all --any |
1343 $ hg evolve --all --any |
1354 move:[20] add j2 |
1344 move:[22] add j2 |
1355 atop:[23] add j1 |
1345 atop:[26] add j1 |
1356 move:[21] add j3 |
1346 move:[23] add j3 |
1357 atop:[24] add j2 |
1347 atop:[27] add j2 |
1358 working directory is now at 0d9203b74542 |
1348 working directory is now at c9a20e2d74aa |
1359 $ glog -r "0cf3707e8971::" |
1349 $ glog -r "edc3c9de504e::" |
1360 @ 25:0d9203b74542@default(draft) add j3 |
1350 @ 28:c9a20e2d74aa@default(draft) add j3 |
1361 | |
1351 | |
1362 o 24:f1b85956c48c@default(draft) add j2 |
1352 o 27:b0e3066231e2@default(draft) add j2 |
1363 | |
1353 | |
1364 o 23:0ef9ff75f8e2@default(draft) add j1 |
1354 o 26:044804d0c10d@default(draft) add j1 |
1365 | |
1355 | |
1366 | o 18:0c049e4e5422@default(draft) add gh |
1356 | o 20:e02107f98737@default(draft) add gh |
1367 | | |
1357 | | |
1368 o | 17:98e171e2f272@default(draft) add gg |
1358 o | 19:24e63b319adf@default(draft) add gg |
1369 |/ |
1359 |/ |
1370 o 16:0cf3707e8971@default(draft) a3 |
1360 o 18:edc3c9de504e@default(draft) a3 |
1371 | |
1361 | |
1372 ~ |
1362 ~ |
1373 $ hg up 98e171e2f272 |
1363 $ hg up 19 |
1374 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1364 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1375 $ mkcommit c5_ |
1365 $ mkcommit c5_ |
1376 created new head |
1366 created new head |
1377 $ hg prune '0ef9ff75f8e2 + f1b85956c48c' |
1367 $ hg prune '044804d0c10d + b0e3066231e2' |
1378 abort: touch will orphan 1 descendants |
1368 abort: touch will orphan 1 descendants |
1379 (see 'hg help evolution.instability') |
1369 (see 'hg help evolution.instability') |
1380 [255] |
1370 [255] |
1381 $ hg prune '98e171e2f272::0d9203b74542' |
1371 $ hg prune '24e63b319adf::c9a20e2d74aa' |
1382 abort: touch will orphan 1 descendants |
1372 abort: touch will orphan 1 descendants |
1383 (see 'hg help evolution.instability') |
1373 (see 'hg help evolution.instability') |
1384 [255] |
1374 [255] |
1385 $ hg prune '0ef9ff75f8e2::' |
1375 $ hg prune '044804d0c10d::' |
1386 3 changesets pruned |
1376 3 changesets pruned |
1387 $ glog -r "0cf3707e8971::" |
1377 $ glog -r "edc3c9de504e::" |
1388 @ 26:4c6f6f6d1976@default(draft) add c5_ |
1378 @ 29:2251801b6c91@default(draft) add c5_ |
1389 | |
1379 | |
1390 | o 18:0c049e4e5422@default(draft) add gh |
1380 | o 20:e02107f98737@default(draft) add gh |
1391 | | |
1381 | | |
1392 o | 17:98e171e2f272@default(draft) add gg |
1382 o | 19:24e63b319adf@default(draft) add gg |
1393 |/ |
1383 |/ |
1394 o 16:0cf3707e8971@default(draft) a3 |
1384 o 18:edc3c9de504e@default(draft) a3 |
1395 | |
1385 | |
1396 ~ |
1386 ~ |
1397 |
1387 |
1398 Check that fold respects the allowunstable option |
1388 Check that fold respects the allowunstable option |
1399 |
1389 |
1400 (most of this has been moved to test-fold.t) |
1390 (most of this has been moved to test-fold.t) |
1401 |
1391 |
1402 $ hg up 0cf3707e8971 |
1392 $ hg up edc3c9de504e |
1403 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1393 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1404 $ mkcommit unstableifparentisfolded |
1394 $ mkcommit unstableifparentisfolded |
1405 created new head |
1395 created new head |
1406 $ glog -r "0cf3707e8971::" |
1396 $ glog -r "edc3c9de504e::" |
1407 @ 27:2d1b55e10be9@default(draft) add unstableifparentisfolded |
1397 @ 30:68330ac625b8@default(draft) add unstableifparentisfolded |
1408 | |
1398 | |
1409 | o 26:4c6f6f6d1976@default(draft) add c5_ |
1399 | o 29:2251801b6c91@default(draft) add c5_ |
1410 | | |
1400 | | |
1411 +---o 18:0c049e4e5422@default(draft) add gh |
1401 +---o 20:e02107f98737@default(draft) add gh |
1412 | | |
1402 | | |
1413 | o 17:98e171e2f272@default(draft) add gg |
1403 | o 19:24e63b319adf@default(draft) add gg |
1414 |/ |
1404 |/ |
1415 o 16:0cf3707e8971@default(draft) a3 |
1405 o 18:edc3c9de504e@default(draft) a3 |
1416 | |
1406 | |
1417 ~ |
1407 ~ |
1418 |
1408 |
1419 $ hg fold --exact "98e171e2f272::" |
1409 $ hg fold --exact "24e63b319adf::" |
1420 2 changesets folded |
1410 2 changesets folded |
1421 |
1411 |
1422 Check that evolve shows error while handling split commits |
1412 Check that evolve shows error while handling split commits |
1423 -------------------------------------- |
1413 -------------------------------------- |
1424 |
1414 |
1425 $ cat >> $HGRCPATH <<EOF |
1415 $ cat >> $HGRCPATH <<EOF |
1426 > [experimental] |
1416 > [experimental] |
1427 > evolution=all |
1417 > evolution=all |
1428 > EOF |
1418 > EOF |
1429 |
1419 |
1430 $ glog -r "0cf3707e8971::" |
1420 $ glog -r "edc3c9de504e::" |
1431 o 28:92ca6f3984de@default(draft) add gg |
1421 o 31:580886d07058@default(draft) add gg |
1432 | |
1422 | |
1433 | @ 27:2d1b55e10be9@default(draft) add unstableifparentisfolded |
1423 | @ 30:68330ac625b8@default(draft) add unstableifparentisfolded |
1434 |/ |
1424 |/ |
1435 | o 18:0c049e4e5422@default(draft) add gh |
1425 | o 20:e02107f98737@default(draft) add gh |
1436 |/ |
1426 |/ |
1437 o 16:0cf3707e8971@default(draft) a3 |
1427 o 18:edc3c9de504e@default(draft) a3 |
1438 | |
1428 | |
1439 ~ |
1429 ~ |
1440 |
1430 |
1441 Create a split commit |
1431 Create a split commit |
1442 $ printf "oo" > oo; |
1432 $ printf "oo" > oo; |
1443 $ printf "pp" > pp; |
1433 $ printf "pp" > pp; |
1444 $ hg add oo pp |
1434 $ hg add oo pp |
1445 $ hg commit -m "oo+pp" |
1435 $ hg commit -m "oo+pp" |
1446 $ mkcommit uu |
1436 $ mkcommit uu |
1447 $ hg up 2d1b55e10be9 |
1437 $ hg up 68330ac625b8 |
1448 0 files updated, 0 files merged, 3 files removed, 0 files unresolved |
1438 0 files updated, 0 files merged, 3 files removed, 0 files unresolved |
1449 $ printf "oo" > oo; |
1439 $ printf "oo" > oo; |
1450 $ hg add oo |
1440 $ hg add oo |
1451 $ hg commit -m "_oo" |
1441 $ hg commit -m "_oo" |
1452 created new head |
1442 created new head |
1453 $ printf "pp" > pp; |
1443 $ printf "pp" > pp; |
1454 $ hg add pp |
1444 $ hg add pp |
1455 $ hg commit -m "_pp" |
1445 $ hg commit -m "_pp" |
1456 $ hg prune --succ "desc(_oo) + desc(_pp)" -r "desc('oo+pp')" --split |
1446 $ hg prune --succ "desc(_oo) + desc(_pp)" -r "desc('oo+pp')" --split |
1457 1 changesets pruned |
1447 1 changesets pruned |
1458 1 new orphan changesets |
1448 1 new unstable changesets |
1459 $ glog -r "0cf3707e8971::" |
1449 $ glog -r "edc3c9de504e::" |
1460 @ 32:c7dbf668e9d5@default(draft) _pp |
1450 @ 35:7a555adf2b4a@default(draft) _pp |
1461 | |
1451 | |
1462 o 31:2b5a32114b3d@default(draft) _oo |
1452 o 34:2be4d2d5bf34@default(draft) _oo |
1463 | |
1453 | |
1464 | o 30:4d122571f3b6@default(draft) add uu |
1454 | o 33:53f0c003e03e@default(draft) add uu |
1465 | | |
1455 | | |
1466 | x 29:7da3e73df8a5@default(draft) oo+pp |
1456 | x 32:1bf2152f4f82@default(draft) oo+pp |
1467 |/ |
1457 |/ |
1468 | o 28:92ca6f3984de@default(draft) add gg |
1458 | o 31:580886d07058@default(draft) add gg |
1469 | | |
1459 | | |
1470 o | 27:2d1b55e10be9@default(draft) add unstableifparentisfolded |
1460 o | 30:68330ac625b8@default(draft) add unstableifparentisfolded |
1471 |/ |
1461 |/ |
1472 | o 18:0c049e4e5422@default(draft) add gh |
1462 | o 20:e02107f98737@default(draft) add gh |
1473 |/ |
1463 |/ |
1474 o 16:0cf3707e8971@default(draft) a3 |
1464 o 18:edc3c9de504e@default(draft) a3 |
1475 | |
1465 | |
1476 ~ |
1466 ~ |
1477 $ hg evolve --rev "0cf3707e8971::" |
1467 $ hg evolve --rev "edc3c9de504e::" |
1478 move:[30] add uu |
1468 move:[33] add uu |
1479 atop:[32] _pp |
1469 atop:[35] _pp |
1480 working directory is now at be23044af550 |
1470 working directory is now at 43c3f5ef149f |
1481 |
1471 |
1482 |
1472 |
1483 Check that dirstate changes are kept at failure for conflicts (issue4966) |
1473 Check that dirstate changes are kept at failure for conflicts (issue4966) |
1484 ---------------------------------------- |
1474 ---------------------------------------- |
1485 |
1475 |
1486 $ echo "will be amended" > newfile |
1476 $ echo "will be amended" > newfile |
1487 $ hg commit -m "will be amended" |
1477 $ hg commit -m "will be amended" |
1488 $ hg parents |
1478 $ hg parents |
1489 34 : will be amended - test |
1479 37 : will be amended - test |
1490 |
1480 |
1491 $ echo "will be evolved safely" >> a |
1481 $ echo "will be evolved safely" >> a |
1492 $ hg commit -m "will be evolved safely" |
1482 $ hg commit -m "will be evolved safely" |
1493 |
1483 |
1494 $ echo "will cause conflict at evolve" > newfile |
1484 $ echo "will cause conflict at evolve" > newfile |
1495 $ echo "newly added" > newlyadded |
1485 $ echo "newly added" > newlyadded |
1496 $ hg add newlyadded |
1486 $ hg add newlyadded |
1497 $ hg commit -m "will cause conflict at evolve" |
1487 $ hg commit -m "will cause conflict at evolve" |
1498 |
1488 |
1499 $ glog -r "0cf3707e8971::" |
1489 $ hg update -q 36030b147271 |
1500 @ 36:59c37c5bebd1@default(draft) will cause conflict at evolve |
|
1501 | |
|
1502 o 35:7cc12c6c7862@default(draft) will be evolved safely |
|
1503 | |
|
1504 o 34:98c7ab460e6b@default(draft) will be amended |
|
1505 | |
|
1506 o 33:be23044af550@default(draft) add uu |
|
1507 | |
|
1508 o 32:c7dbf668e9d5@default(draft) _pp |
|
1509 | |
|
1510 o 31:2b5a32114b3d@default(draft) _oo |
|
1511 | |
|
1512 | o 28:92ca6f3984de@default(draft) add gg |
|
1513 | | |
|
1514 o | 27:2d1b55e10be9@default(draft) add unstableifparentisfolded |
|
1515 |/ |
|
1516 | o 18:0c049e4e5422@default(draft) add gh |
|
1517 |/ |
|
1518 o 16:0cf3707e8971@default(draft) a3 |
|
1519 | |
|
1520 ~ |
|
1521 |
|
1522 $ hg update -q 98c7ab460e6b |
|
1523 $ echo "amended" > newfile |
1490 $ echo "amended" > newfile |
1524 $ hg amend -m "amended" |
1491 $ hg amend -m "amended" |
1525 2 new orphan changesets |
1492 2 new unstable changesets |
1526 |
1493 |
1527 $ hg evolve --rev "98c7ab460e6b::" |
1494 $ hg evolve --rev "36030b147271::" |
1528 move:[35] will be evolved safely |
1495 move:[38] will be evolved safely |
1529 atop:[37] amended |
1496 atop:[41] amended |
1530 move:[36] will cause conflict at evolve |
1497 move:[39] will cause conflict at evolve |
1531 atop:[38] will be evolved safely |
1498 atop:[42] will be evolved safely |
1532 merging newfile |
1499 merging newfile |
1533 warning: conflicts while merging newfile! (edit, then use 'hg resolve --mark') |
1500 warning: conflicts while merging newfile! (edit, then use 'hg resolve --mark') |
1534 evolve failed! |
1501 evolve failed! |
1535 fix conflict and run 'hg evolve --continue' or use 'hg evolve --abort' to abort |
1502 fix conflict and run 'hg evolve --continue' or use 'hg evolve --abort' to abort |
1536 abort: unresolved merge conflicts (see hg help resolve) |
1503 abort: unresolved merge conflicts (see hg help resolve) |
1537 [255] |
1504 [255] |
1538 |
1505 |
1539 $ glog -r "be23044af550::" --hidden |
1506 $ glog -r "43c3f5ef149f::" --hidden |
1540 @ 38:61abd81de026@default(draft) will be evolved safely |
1507 @ 42:c904da5245b0@default(draft) will be evolved safely |
1541 | |
1508 | |
1542 o 37:df89d30f23e2@default(draft) amended |
1509 o 41:34ae045ec400@default(draft) amended |
1543 | |
1510 | |
1544 | o 36:59c37c5bebd1@default(draft) will cause conflict at evolve |
1511 | x 40:e88bee38ffc2@default(draft) temporary amend commit for 36030b147271 |
1545 | | |
1512 | | |
1546 | x 35:7cc12c6c7862@default(draft) will be evolved safely |
1513 | | o 39:02e943732647@default(draft) will cause conflict at evolve |
1547 | | |
1514 | | | |
1548 | x 34:98c7ab460e6b@default(draft) will be amended |
1515 | | x 38:f8e30e9317aa@default(draft) will be evolved safely |
1549 |/ |
1516 | |/ |
1550 o 33:be23044af550@default(draft) add uu |
1517 | x 37:36030b147271@default(draft) will be amended |
|
1518 |/ |
|
1519 o 36:43c3f5ef149f@default(draft) add uu |
1551 | |
1520 | |
1552 ~ |
1521 ~ |
1553 |
1522 |
1554 $ hg status newlyadded |
1523 $ hg status newlyadded |
1555 A newlyadded |
1524 A newlyadded |