comparison tests/test-evolve.t @ 1608:e359d33856c3 mercurial-3.4

merge with new stable through 3.5 and 3.6
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 11 Feb 2016 00:32:40 +0000
parents 3c7f98753e37 c2739551ea4e
children 05d7df73a56b
comparison
equal deleted inserted replaced
1607:3c7f98753e37 1608:e359d33856c3
1398 move:[33] add uu 1398 move:[33] add uu
1399 atop:[35] _pp 1399 atop:[35] _pp
1400 working directory is now at 43c3f5ef149f 1400 working directory is now at 43c3f5ef149f
1401 1401
1402 1402
1403 Check that dirstate changes are kept at failure for conflicts (issue4966)
1404 ----------------------------------------
1405
1406 $ echo "will be amended" > newfile
1407 $ hg commit -m "will be amended"
1408 $ hg parents
1409 37 : will be amended - test
1410
1411 $ echo "will be evolved safely" >> a
1412 $ hg commit -m "will be evolved safely"
1413
1414 $ echo "will cause conflict at evolve" > newfile
1415 $ echo "newly added" > newlyadded
1416 $ hg add newlyadded
1417 $ hg commit -m "will cause conflict at evolve"
1418
1419 $ hg update -q 37
1420 $ echo "amended" > newfile
1421 $ hg amend -m "amended"
1422 2 new unstable changesets
1423
1424 $ hg evolve --rev "37::"
1425 move:[38] will be evolved safely
1426 atop:[41] amended
1427 move:[39] will cause conflict at evolve
1428 atop:[42] will be evolved safely
1429 merging newfile
1430 warning: conflicts during merge.
1431 merging newfile incomplete! (edit conflicts, then use 'hg resolve --mark')
1432 evolve failed!
1433 fix conflict and run "hg evolve --continue" or use "hg update -C" to abort
1434 abort: unresolved merge conflicts (see hg help resolve)
1435 [255]
1436
1437 $ glog -r "36::" --hidden
1438 @ 42:c904da5245b0@default(draft) will be evolved safely
1439 |
1440 o 41:34ae045ec400@default(draft) amended
1441 |
1442 | x 40:e88bee38ffc2@default(draft) temporary amend commit for 36030b147271
1443 | |
1444 | | o 39:02e943732647@default(draft) will cause conflict at evolve
1445 | | |
1446 | | x 38:f8e30e9317aa@default(draft) will be evolved safely
1447 | |/
1448 | x 37:36030b147271@default(draft) will be amended
1449 |/
1450 o 36:43c3f5ef149f@default(draft) add uu
1451 |
1452
1453 $ hg status newlyadded
1454 A newlyadded