tests/test-evolve.t
branchmercurial-3.5
changeset 1606 c2739551ea4e
parent 1600 0d8973818980
parent 1604 61dd08f4dc62
child 1608 e359d33856c3
child 1698 dd6f090b7342
equal deleted inserted replaced
1600:0d8973818980 1606:c2739551ea4e
  1396   move:[33] add uu
  1396   move:[33] add uu
  1397   atop:[35] _pp
  1397   atop:[35] _pp
  1398   working directory is now at 43c3f5ef149f
  1398   working directory is now at 43c3f5ef149f
  1399 
  1399 
  1400 
  1400 
       
  1401 Check that dirstate changes are kept at failure for conflicts (issue4966)
       
  1402 ----------------------------------------
       
  1403 
       
  1404   $ echo "will be amended" > newfile
       
  1405   $ hg commit -m "will be amended"
       
  1406   $ hg parents
       
  1407   37	: will be amended - test
       
  1408 
       
  1409   $ echo "will be evolved safely" >> a
       
  1410   $ hg commit -m "will be evolved safely"
       
  1411 
       
  1412   $ echo "will cause conflict at evolve" > newfile
       
  1413   $ echo "newly added" > newlyadded
       
  1414   $ hg add newlyadded
       
  1415   $ hg commit -m "will cause conflict at evolve"
       
  1416 
       
  1417   $ hg update -q 37
       
  1418   $ echo "amended" > newfile
       
  1419   $ hg amend -m "amended"
       
  1420   2 new unstable changesets
       
  1421 
       
  1422   $ hg evolve --rev "37::"
       
  1423   move:[38] will be evolved safely
       
  1424   atop:[41] amended
       
  1425   move:[39] will cause conflict at evolve
       
  1426   atop:[42] will be evolved safely
       
  1427   merging newfile
       
  1428   warning: conflicts during merge.
       
  1429   merging newfile incomplete! (edit conflicts, then use 'hg resolve --mark')
       
  1430   evolve failed!
       
  1431   fix conflict and run "hg evolve --continue" or use "hg update -C" to abort
       
  1432   abort: unresolved merge conflicts (see hg help resolve)
       
  1433   [255]
       
  1434 
       
  1435   $ glog -r "36::" --hidden
       
  1436   @  42:c904da5245b0@default(draft) will be evolved safely
       
  1437   |
       
  1438   o  41:34ae045ec400@default(draft) amended
       
  1439   |
       
  1440   | x  40:e88bee38ffc2@default(draft) temporary amend commit for 36030b147271
       
  1441   | |
       
  1442   | | o  39:02e943732647@default(draft) will cause conflict at evolve
       
  1443   | | |
       
  1444   | | x  38:f8e30e9317aa@default(draft) will be evolved safely
       
  1445   | |/
       
  1446   | x  37:36030b147271@default(draft) will be amended
       
  1447   |/
       
  1448   o  36:43c3f5ef149f@default(draft) add uu
       
  1449   |
       
  1450 
       
  1451   $ hg status newlyadded
       
  1452   A newlyadded