comparison tests/test-evolve.t @ 3930:d00f0c369bc7 mercurial-4.4

test-compat: merge mercurial-4.5 into mercurial-4.4
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 02 Aug 2018 02:47:44 +0200
parents 19ec729f3ca2 f7afd3a158e3
children 537fd9a86c06 684cc3418ecd
comparison
equal deleted inserted replaced
3929:e709e3817d7e 3930:d00f0c369bc7
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 4:ba0ec09b1bab@default(draft) a nifty feature
356 | 356 |
357 | * 3:6992c59c6b06@default(draft) another feature (child of 568a468b60fc) 357 | o 3:6992c59c6b06@default(draft) another feature (child of 568a468b60fc)
358 | | 358 | |
359 | | x 2:73296a82292a@default(draft) another feature (child of 568a468b60fc) 359 | | x 2:73296a82292a@default(draft) another feature (child of 568a468b60fc)
360 | |/ 360 | |/
361 | x 1:568a468b60fc@default(draft) a nifty feature 361 | x 1:568a468b60fc@default(draft) a nifty feature
362 |/ 362 |/
445 (ninja test for the {trouble} template: 445 (ninja test for the {trouble} template:
446 446
447 $ hg log -G --template '{rev} {troubles}\n' 447 $ hg log -G --template '{rev} {troubles}\n'
448 @ 10 448 @ 10
449 | 449 |
450 | * 9 orphan 450 | o 9 orphan
451 | | 451 | |
452 | * 8 orphan 452 | o 8 orphan
453 | | 453 | |
454 | x 7 454 | x 7
455 |/ 455 |/
456 o 5 456 o 5
457 | 457 |
956 $ hg up -r "desc('a2')" 956 $ hg up -r "desc('a2')"
957 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 957 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
958 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' 958 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n'
959 o 9 [default] a1__ 959 o 9 [default] a1__
960 | 960 |
961 | * 8 [mybranch] a3 961 | o 8 [mybranch] a3
962 | | 962 | |
963 | @ 7 [mybranch] a2 963 | @ 7 [mybranch] a2
964 | | 964 | |
965 | x 6 [default] a1_ 965 | x 6 [default] a1_
966 |/ 966 |/
990 $ glog 990 $ glog
991 @ 10:d952e93add6f@mybranch(draft) a2 991 @ 10:d952e93add6f@mybranch(draft) a2
992 | 992 |
993 o 9:9f8b83c2e7f3@default(draft) a1__ 993 o 9:9f8b83c2e7f3@default(draft) a1__
994 | 994 |
995 | * 8:777c26ca5e78@mybranch(draft) a3 995 | o 8:777c26ca5e78@mybranch(draft) a3
996 | | 996 | |
997 | x 7:eb07e22a0e63@mybranch(draft) a2 997 | x 7:eb07e22a0e63@mybranch(draft) a2
998 | | 998 | |
999 | x 6:faafc6cea0ba@default(draft) a1_ 999 | x 6:faafc6cea0ba@default(draft) a1_
1000 |/ 1000 |/
1010 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' 1010 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n'
1011 o 10 [mybranch] a2 1011 o 10 [mybranch] a2
1012 | 1012 |
1013 @ 9 [default] a1__ 1013 @ 9 [default] a1__
1014 | 1014 |
1015 | * 8 [mybranch] a3 1015 | o 8 [mybranch] a3
1016 | | 1016 | |
1017 | x 7 [mybranch] a2 1017 | x 7 [mybranch] a2
1018 | | 1018 | |
1019 | x 6 [default] a1_ 1019 | x 6 [default] a1_
1020 |/ 1020 |/
1030 | 1030 |
1031 | o 10 : a2 - test 1031 | o 10 : a2 - test
1032 |/ 1032 |/
1033 o 9 testbookmark: a1__ - test 1033 o 9 testbookmark: a1__ - test
1034 | 1034 |
1035 | * 8 : a3 - test 1035 | o 8 : a3 - test
1036 | | 1036 | |
1037 | x 7 : a2 - test 1037 | x 7 : a2 - test
1038 | | 1038 | |
1039 | x 6 : a1_ - test 1039 | x 6 : a1_ - test
1040 |/ 1040 |/
1049 | 1049 |
1050 | o 10 : a2 - test 1050 | o 10 : a2 - test
1051 |/ 1051 |/
1052 o 9 testbookmark: a1__ - test 1052 o 9 testbookmark: a1__ - test
1053 | 1053 |
1054 | * 8 : a3 - test 1054 | o 8 : a3 - test
1055 | | 1055 | |
1056 | x 7 : a2 - test 1056 | x 7 : a2 - test
1057 | | 1057 | |
1058 | x 6 : a1_ - test 1058 | x 6 : a1_ - test
1059 |/ 1059 |/
1110 $ hg amend 1110 $ hg amend
1111 2 new orphan changesets 1111 2 new orphan changesets
1112 $ glog 1112 $ glog
1113 @ 16:0cf3707e8971@default(draft) a3 1113 @ 16:0cf3707e8971@default(draft) a3
1114 | 1114 |
1115 | * 15:daa1ff1c7fbd@default(draft) add gh 1115 | o 15:daa1ff1c7fbd@default(draft) add gh
1116 | | 1116 | |
1117 | | * 14:484fb3cfa7f2@default(draft) add gg 1117 | | o 14:484fb3cfa7f2@default(draft) add gg
1118 | |/ 1118 | |/
1119 | x 13:b88539ad24d7@default(draft) a3 1119 | x 13:b88539ad24d7@default(draft) a3
1120 |/ 1120 |/
1121 o 12:a8bb31d4b7f2@default(draft) phase-divergent update to d952e93add6f: 1121 o 12:a8bb31d4b7f2@default(draft) phase-divergent update to d952e93add6f:
1122 | 1122 |
1252 [255] 1252 [255]
1253 1253
1254 Shows "use 'hg evolve' to..." hints iff the evolve command is enabled 1254 Shows "use 'hg evolve' to..." hints iff the evolve command is enabled
1255 1255
1256 $ hg --hidden up 14 1256 $ hg --hidden up 14
1257 updating to a hidden changeset 484fb3cfa7f2
1258 (hidden revision '484fb3cfa7f2' was rewritten as: 98e171e2f272)
1259 2 files updated, 0 files merged, 1 files removed, 0 files unresolved 1257 2 files updated, 0 files merged, 1 files removed, 0 files unresolved
1260 working directory parent is obsolete! (484fb3cfa7f2) 1258 working directory parent is obsolete! (484fb3cfa7f2)
1261 $ cat >> $HGRCPATH <<EOF 1259 $ cat >> $HGRCPATH <<EOF
1262 > [experimental] 1260 > [experimental]
1263 > evolutioncommands=evolve 1261 > evolutioncommands=evolve
1264 > EOF 1262 > EOF
1265 $ hg --hidden up 15 1263 $ hg --hidden up 15
1266 updating to a hidden changeset daa1ff1c7fbd
1267 (hidden revision 'daa1ff1c7fbd' was rewritten as: 0c049e4e5422)
1268 1 files updated, 0 files merged, 1 files removed, 0 files unresolved 1264 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
1269 working directory parent is obsolete! (daa1ff1c7fbd) 1265 working directory parent is obsolete! (daa1ff1c7fbd)
1270 (use 'hg evolve' to update to its successor: 0c049e4e5422) 1266 (use 'hg evolve' to update to its successor: 0c049e4e5422)
1271 1267
1272 Restore all of the evolution features 1268 Restore all of the evolution features
1289 $ hg amend 1285 $ hg amend
1290 2 new orphan changesets 1286 2 new orphan changesets
1291 $ glog -r "0cf3707e8971::" 1287 $ glog -r "0cf3707e8971::"
1292 @ 22:274b6cd0c101@default(draft) add j1 1288 @ 22:274b6cd0c101@default(draft) add j1
1293 | 1289 |
1294 | * 21:89e4f7e8feb5@default(draft) add j3 1290 | o 21:89e4f7e8feb5@default(draft) add j3
1295 | | 1291 | |
1296 | * 20:4cd61236beca@default(draft) add j2 1292 | o 20:4cd61236beca@default(draft) add j2
1297 | | 1293 | |
1298 | x 19:0fd8bfb02de4@default(draft) add j1 1294 | x 19:0fd8bfb02de4@default(draft) add j1
1299 |/ 1295 |/
1300 | o 18:0c049e4e5422@default(draft) add gh 1296 | o 18:0c049e4e5422@default(draft) add gh
1301 | | 1297 | |
1329 new changeset is empty 1325 new changeset is empty
1330 (use 'hg prune .' to remove it) 1326 (use 'hg prune .' to remove it)
1331 $ glog -r "0cf3707e8971::" 1327 $ glog -r "0cf3707e8971::"
1332 @ 23:0ef9ff75f8e2@default(draft) add j1 1328 @ 23:0ef9ff75f8e2@default(draft) add j1
1333 | 1329 |
1334 | * 21:89e4f7e8feb5@default(draft) add j3 1330 | o 21:89e4f7e8feb5@default(draft) add j3
1335 | | 1331 | |
1336 | * 20:4cd61236beca@default(draft) add j2 1332 | o 20:4cd61236beca@default(draft) add j2
1337 | | 1333 | |
1338 | x 19:0fd8bfb02de4@default(draft) add j1 1334 | x 19:0fd8bfb02de4@default(draft) add j1
1339 |/ 1335 |/
1340 | o 18:0c049e4e5422@default(draft) add gh 1336 | o 18:0c049e4e5422@default(draft) add gh
1341 | | 1337 | |
1463 $ glog -r "0cf3707e8971::" 1459 $ glog -r "0cf3707e8971::"
1464 @ 32:c7dbf668e9d5@default(draft) _pp 1460 @ 32:c7dbf668e9d5@default(draft) _pp
1465 | 1461 |
1466 o 31:2b5a32114b3d@default(draft) _oo 1462 o 31:2b5a32114b3d@default(draft) _oo
1467 | 1463 |
1468 | * 30:4d122571f3b6@default(draft) add uu 1464 | o 30:4d122571f3b6@default(draft) add uu
1469 | | 1465 | |
1470 | x 29:7da3e73df8a5@default(draft) oo+pp 1466 | x 29:7da3e73df8a5@default(draft) oo+pp
1471 |/ 1467 |/
1472 | o 28:92ca6f3984de@default(draft) add gg 1468 | o 28:92ca6f3984de@default(draft) add gg
1473 | | 1469 | |
1541 $ glog -r "be23044af550::" --hidden 1537 $ glog -r "be23044af550::" --hidden
1542 @ 38:61abd81de026@default(draft) will be evolved safely 1538 @ 38:61abd81de026@default(draft) will be evolved safely
1543 | 1539 |
1544 o 37:df89d30f23e2@default(draft) amended 1540 o 37:df89d30f23e2@default(draft) amended
1545 | 1541 |
1546 | * 36:59c37c5bebd1@default(draft) will cause conflict at evolve 1542 | o 36:59c37c5bebd1@default(draft) will cause conflict at evolve
1547 | | 1543 | |
1548 | x 35:7cc12c6c7862@default(draft) will be evolved safely 1544 | x 35:7cc12c6c7862@default(draft) will be evolved safely
1549 | | 1545 | |
1550 | x 34:98c7ab460e6b@default(draft) will be amended 1546 | x 34:98c7ab460e6b@default(draft) will be amended
1551 |/ 1547 |/
1573 1569
1574 $ hg log -GT "{rev}:{node|short} {desc} {bookmarks}\n" 1570 $ hg log -GT "{rev}:{node|short} {desc} {bookmarks}\n"
1575 @ 1:ab832e43dd5a added a 1571 @ 1:ab832e43dd5a added a
1576 1572
1577 $ hg up f7ad41964313 --hidden 1573 $ hg up f7ad41964313 --hidden
1578 updating to a hidden changeset f7ad41964313
1579 (hidden revision 'f7ad41964313' was rewritten as: ab832e43dd5a)
1580 1 files updated, 0 files merged, 0 files removed, 0 files unresolved 1574 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
1581 working directory parent is obsolete! (f7ad41964313) 1575 working directory parent is obsolete! (f7ad41964313)
1582 (use 'hg evolve' to update to its successor: ab832e43dd5a) 1576 (use 'hg evolve' to update to its successor: ab832e43dd5a)
1583 1577
1584 $ hg bookmark book 1578 $ hg bookmark book