Mercurial > evolve
comparison tests/test-evolve.t @ 3914:96945ea908df stable
branching: merge default into stable
The stable branch of Mercurial core now contains Mercurial 4.7 so evolve branch
policy requires this merge. The @ bookmark is in the right location, so people
doing clone will get to the latest release.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 31 Jul 2018 12:52:06 +0200 |
parents | 9c0b37be8582 |
children | f7afd3a158e3 8fcee1e65e29 fb8e44c70798 |
comparison
equal
deleted
inserted
replaced
3901:f2b8429db565 | 3914:96945ea908df |
---|---|
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 | 1257 2 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1258 updated to hidden changeset 484fb3cfa7f2 | |
1258 (hidden revision '484fb3cfa7f2' was rewritten as: 98e171e2f272) | 1259 (hidden revision '484fb3cfa7f2' was rewritten as: 98e171e2f272) |
1259 2 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
1260 working directory parent is obsolete! (484fb3cfa7f2) | 1260 working directory parent is obsolete! (484fb3cfa7f2) |
1261 $ cat >> $HGRCPATH <<EOF | 1261 $ cat >> $HGRCPATH <<EOF |
1262 > [experimental] | 1262 > [experimental] |
1263 > evolutioncommands=evolve | 1263 > evolutioncommands=evolve |
1264 > EOF | 1264 > EOF |
1265 $ hg --hidden up 15 | 1265 $ hg --hidden up 15 |
1266 updating to a hidden changeset daa1ff1c7fbd | 1266 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1267 updated to hidden changeset daa1ff1c7fbd | |
1267 (hidden revision 'daa1ff1c7fbd' was rewritten as: 0c049e4e5422) | 1268 (hidden revision 'daa1ff1c7fbd' was rewritten as: 0c049e4e5422) |
1268 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
1269 working directory parent is obsolete! (daa1ff1c7fbd) | 1269 working directory parent is obsolete! (daa1ff1c7fbd) |
1270 (use 'hg evolve' to update to its successor: 0c049e4e5422) | 1270 (use 'hg evolve' to update to its successor: 0c049e4e5422) |
1271 | 1271 |
1272 Restore all of the evolution features | 1272 Restore all of the evolution features |
1273 | 1273 |
1533 atop:[37] amended | 1533 atop:[37] amended |
1534 move:[36] will cause conflict at evolve | 1534 move:[36] will cause conflict at evolve |
1535 atop:[38] will be evolved safely | 1535 atop:[38] will be evolved safely |
1536 merging newfile | 1536 merging newfile |
1537 warning: conflicts while merging newfile! (edit, then use 'hg resolve --mark') | 1537 warning: conflicts while merging newfile! (edit, then use 'hg resolve --mark') |
1538 evolve failed! | 1538 fix conflicts and see `hg help evolve.interrupted` |
1539 fix conflict and run 'hg evolve --continue' or use 'hg evolve --abort' to abort | 1539 [1] |
1540 abort: unresolved merge conflicts (see hg help resolve) | |
1541 [255] | |
1542 | 1540 |
1543 $ glog -r "be23044af550::" --hidden | 1541 $ glog -r "be23044af550::" --hidden |
1544 @ 38:61abd81de026@default(draft) will be evolved safely | 1542 @ 38:61abd81de026@default(draft) will be evolved safely |
1545 | | 1543 | |
1546 o 37:df89d30f23e2@default(draft) amended | 1544 o 37:df89d30f23e2@default(draft) amended |
1555 | | 1553 | |
1556 ~ | 1554 ~ |
1557 | 1555 |
1558 $ hg status newlyadded | 1556 $ hg status newlyadded |
1559 A newlyadded | 1557 A newlyadded |
1558 | |
1559 $ cd .. | |
1560 | |
1561 Testing bookmark movement when `hg evolve` updates to successor (issue5923) | |
1562 | |
1563 $ hg init issue5923 | |
1564 $ cd issue5923 | |
1565 $ echo foo > a | |
1566 $ hg ci -Aqm "added a" | |
1567 | |
1568 $ hg log -GT "{rev}:{node|short} {desc} {bookmarks}\n" | |
1569 @ 0:f7ad41964313 added a | |
1570 | |
1571 $ echo bar >> a | |
1572 $ hg amend | |
1573 | |
1574 $ hg log -GT "{rev}:{node|short} {desc} {bookmarks}\n" | |
1575 @ 1:ab832e43dd5a added a | |
1576 | |
1577 $ hg up f7ad41964313 --hidden | |
1578 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
1579 updated to hidden changeset f7ad41964313 | |
1580 (hidden revision 'f7ad41964313' was rewritten as: ab832e43dd5a) | |
1581 working directory parent is obsolete! (f7ad41964313) | |
1582 (use 'hg evolve' to update to its successor: ab832e43dd5a) | |
1583 | |
1584 $ hg bookmark book | |
1585 | |
1586 $ hg evolve | |
1587 update:[1] added a | |
1588 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
1589 working directory is now at ab832e43dd5a | |
1590 | |
1591 $ hg log -GT "{rev}:{node|short} {desc} ({bookmarks})\n" --hidden | |
1592 @ 1:ab832e43dd5a added a (book) | |
1593 | |
1594 x 0:f7ad41964313 added a () | |
1595 |