tests/test-evolve.t
branchmercurial-4.4
changeset 3714 19ec729f3ca2
parent 3590 d5adce52cef4
parent 3702 f6979d64b9fb
child 3715 a77fb9669e99
child 3930 d00f0c369bc7
equal deleted inserted replaced
3713:4358f29af833 3714:19ec729f3ca2
   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   | |
  1543   $ glog -r "be23044af550::" --hidden
  1539   $ glog -r "be23044af550::" --hidden
  1544   @  38:61abd81de026@default(draft) will be evolved safely
  1540   @  38:61abd81de026@default(draft) will be evolved safely
  1545   |
  1541   |
  1546   o  37:df89d30f23e2@default(draft) amended
  1542   o  37:df89d30f23e2@default(draft) amended
  1547   |
  1543   |
  1548   | *  36:59c37c5bebd1@default(draft) will cause conflict at evolve
  1544   | o  36:59c37c5bebd1@default(draft) will cause conflict at evolve
  1549   | |
  1545   | |
  1550   | x  35:7cc12c6c7862@default(draft) will be evolved safely
  1546   | x  35:7cc12c6c7862@default(draft) will be evolved safely
  1551   | |
  1547   | |
  1552   | x  34:98c7ab460e6b@default(draft) will be amended
  1548   | x  34:98c7ab460e6b@default(draft) will be amended
  1553   |/
  1549   |/