##// END OF EJS Templates
tests: unify test-conflict
Nicolas Dumazet -
r11797:66e4e8e8 default
parent child Browse files
Show More
@@ -1,15 +1,32 b''
1 #!/bin/sh
1 $ hg init
2 $ echo "nothing" > a
3 $ hg add a
4 $ hg commit -m ancestor -d "1000000 0"
5 $ echo "something" > a
6 $ hg commit -m branch1 -d "1000000 0"
7 $ hg co 0
8 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
9 $ echo "something else" > a
10 $ hg commit -m branch2 -d "1000000 0"
11 created new head
2
12
3 hg init
13 $ hg merge 1
4 echo "nothing" > a
14 merging a
5 hg add a
15 warning: conflicts during merge.
6 hg commit -m ancestor -d "1000000 0"
16 merging a failed!
7 echo "something" > a
17 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
8 hg commit -m branch1 -d "1000000 0"
18 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
9 hg co 0
19
10 echo "something else" > a
20 $ hg id
11 hg commit -m branch2 -d "1000000 0"
21 e7fe8eb3e180+0d24b7662d3e+ tip
12 hg merge 1
22
13 hg id
23 $ cat a
14 cat a
24 <<<<<<< local
15 hg status
25 something else
26 =======
27 something
28 >>>>>>> other
29
30 $ hg status
31 M a
32 ? a.orig
1 NO CONTENT: file was removed
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now