##// 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
4 echo "nothing" > a
5 hg add a
6 hg commit -m ancestor -d "1000000 0"
7 echo "something" > a
8 hg commit -m branch1 -d "1000000 0"
9 hg co 0
10 echo "something else" > a
11 hg commit -m branch2 -d "1000000 0"
12 hg merge 1
13 hg id
14 cat a
15 hg status
13 $ hg merge 1
14 merging a
15 warning: conflicts during merge.
16 merging a failed!
17 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
18 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
19
20 $ hg id
21 e7fe8eb3e180+0d24b7662d3e+ tip
22
23 $ cat a
24 <<<<<<< local
25 something else
26 =======
27 something
28 >>>>>>> other
29
30 $ hg status
31 M a
32 ? a.orig
1 NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now