comparison tests/test-shelve2.t @ 44331:2527c10a2569 stable

shelve: add test clearly demonstrating that the conflict labels are backwards Differential Revision: https://phab.mercurial-scm.org/D8139
author Kyle Lippincott <spectral@google.com>
date Thu, 20 Feb 2020 17:06:01 -0800
parents 34a46d48d24e
children 69b091cdc506
comparison
equal deleted inserted replaced
44330:b339faf3f843 44331:2527c10a2569
919 919
920 $ hg log -G --template '{desc|firstline} {author} {date|isodate} \n' -r . 920 $ hg log -G --template '{desc|firstline} {author} {date|isodate} \n' -r .
921 @ initial commit test 1970-01-01 00:00 +0000 921 @ initial commit test 1970-01-01 00:00 +0000
922 922
923 $ cd .. 923 $ cd ..
924
925 Demonstrate that the labels are correct in the merge conflict
926 -------------------------------------------------------------
927 $ hg init labels
928 $ cd labels
929 $ echo r0 > foo
930 $ hg ci -qAm r0
931 $ echo "this will be shelved" >> foo
932 $ hg shelve -q
933 $ echo "this is in wdir, conflicts with shelve" >> foo
934 $ hg unshelve -q
935 warning: conflicts while merging foo! (edit, then use 'hg resolve --mark')
936 unresolved conflicts (see 'hg resolve', then 'hg unshelve --continue')
937 [1]
938 $ cat foo
939 r0
940 <<<<<<< shelve: 0b2fcf2a90e9 - shelve: pending changes temporary commit
941 this is in wdir, conflicts with shelve
942 =======
943 this will be shelved
944 >>>>>>> working-copy: 9c072a2163db - shelve: changes to: r0
945 $ cd ..