##// END OF EJS Templates
merge3: fix argument order...
mpm@selenic.com -
r346:f69a5d2d default
parent child Browse files
Show More
@@ -0,0 +1,17 b''
1 #!/bin/bash
2
3 set -x
4 hg init
5 echo "nothing" > a
6 hg add a
7 hg commit -t ancestor -u test -d "0 0"
8 echo "something" > a
9 hg commit -t branch1 -u test -d "0 0"
10 hg co 0
11 echo "something else" > a
12 hg commit -t branch2 -u test -d "0 0"
13 export HGMERGE=merge
14 hg -d up -m 1
15 hg id
16 cat a | grep -v ">>>" | grep -v "<<<"
17 hg status
@@ -0,0 +1,32 b''
1 + hg init
2 + echo nothing
3 + hg add a
4 + hg commit -t ancestor -u test -d '0 0'
5 + echo something
6 + hg commit -t branch1 -u test -d '0 0'
7 + hg co 0
8 + echo 'something else'
9 + hg commit -t branch2 -u test -d '0 0'
10 + export HGMERGE=merge
11 + HGMERGE=merge
12 + hg -d up -m 1
13 merge: warning: conflicts during merge
14 resolving manifests
15 ancestor 1c6e5a12 local 35fedfab remote a5801785
16 a versions differ, resolve
17 working dir created .out, keeping
18 merging a
19 resolving a
20 file a: other d7250518 ancestor 68ba9db7
21 merging a failed!
22 + hg id
23 32e80765+75234512+ tip
24 + cat a
25 + grep -v '>>>'
26 + grep -v '<<<'
27 something else
28 =======
29 something
30 + hg status
31 C a
32 ? .out
@@ -1118,8 +1118,8 b' class localrepository:'
1118 fl = self.file(fn)
1118 fl = self.file(fn)
1119 base = fl.ancestor(my, other)
1119 base = fl.ancestor(my, other)
1120 a = self.wjoin(fn)
1120 a = self.wjoin(fn)
1121 b = temp("other", other)
1121 b = temp("base", base)
1122 c = temp("base", base)
1122 c = temp("other", other)
1123
1123
1124 self.ui.note("resolving %s\n" % fn)
1124 self.ui.note("resolving %s\n" % fn)
1125 self.ui.debug("file %s: other %s ancestor %s\n" %
1125 self.ui.debug("file %s: other %s ancestor %s\n" %
General Comments 0
You need to be logged in to leave comments. Login now