##// END OF EJS Templates
filemerge: normalize 'internal:foo' names to ':foo'...
Siddharth Agarwal -
r26517:d8463a74 default
parent child Browse files
Show More
@@ -465,6 +465,9 def filemerge(repo, mynode, orig, fcd, f
465 binary = fcd.isbinary() or fco.isbinary() or fca.isbinary()
465 binary = fcd.isbinary() or fco.isbinary() or fca.isbinary()
466 symlink = 'l' in fcd.flags() + fco.flags()
466 symlink = 'l' in fcd.flags() + fco.flags()
467 tool, toolpath = _picktool(repo, ui, fd, binary, symlink)
467 tool, toolpath = _picktool(repo, ui, fd, binary, symlink)
468 if tool in internals and tool.startswith('internal:'):
469 # normalize to new-style names (':merge' etc)
470 tool = tool[len('internal'):]
468 ui.debug("picked tool '%s' for %s (binary %s symlink %s)\n" %
471 ui.debug("picked tool '%s' for %s (binary %s symlink %s)\n" %
469 (tool, fd, binary, symlink))
472 (tool, fd, binary, symlink))
470
473
@@ -620,7 +620,7 Test usage of `hg resolve` in case of co
620 update: (current)
620 update: (current)
621 phases: 3 draft
621 phases: 3 draft
622 $ hg resolve --all --debug
622 $ hg resolve --all --debug
623 picked tool 'internal:merge' for foo (binary False symlink False)
623 picked tool ':merge' for foo (binary False symlink False)
624 merging foo
624 merging foo
625 my foo@b71750c4b0fd+ other foo@a30dd8addae3 ancestor foo@913609522437
625 my foo@b71750c4b0fd+ other foo@a30dd8addae3 ancestor foo@913609522437
626 premerge successful
626 premerge successful
@@ -35,12 +35,12
35 preserving a for resolve of c
35 preserving a for resolve of c
36 removing a
36 removing a
37 b: remote moved from a -> m
37 b: remote moved from a -> m
38 picked tool 'internal:merge' for b (binary False symlink False)
38 picked tool ':merge' for b (binary False symlink False)
39 merging a and b to b
39 merging a and b to b
40 my b@add3f11052fa+ other b@17c05bb7fcb6 ancestor a@b8bf91eeebbc
40 my b@add3f11052fa+ other b@17c05bb7fcb6 ancestor a@b8bf91eeebbc
41 premerge successful
41 premerge successful
42 c: remote moved from a -> m
42 c: remote moved from a -> m
43 picked tool 'internal:merge' for c (binary False symlink False)
43 picked tool ':merge' for c (binary False symlink False)
44 merging a and c to c
44 merging a and c to c
45 my c@add3f11052fa+ other c@17c05bb7fcb6 ancestor a@b8bf91eeebbc
45 my c@add3f11052fa+ other c@17c05bb7fcb6 ancestor a@b8bf91eeebbc
46 premerge successful
46 premerge successful
@@ -38,12 +38,12 we get conflicts that shouldn't be there
38 preserving foo for resolve of bar
38 preserving foo for resolve of bar
39 preserving foo for resolve of foo
39 preserving foo for resolve of foo
40 bar: remote copied from foo -> m
40 bar: remote copied from foo -> m
41 picked tool 'internal:merge' for bar (binary False symlink False)
41 picked tool ':merge' for bar (binary False symlink False)
42 merging foo and bar to bar
42 merging foo and bar to bar
43 my bar@6a0df1dad128+ other bar@484bf6903104 ancestor foo@e6dc8efe11cc
43 my bar@6a0df1dad128+ other bar@484bf6903104 ancestor foo@e6dc8efe11cc
44 premerge successful
44 premerge successful
45 foo: versions differ -> m
45 foo: versions differ -> m
46 picked tool 'internal:merge' for foo (binary False symlink False)
46 picked tool ':merge' for foo (binary False symlink False)
47 merging foo
47 merging foo
48 my foo@6a0df1dad128+ other foo@484bf6903104 ancestor foo@e6dc8efe11cc
48 my foo@6a0df1dad128+ other foo@484bf6903104 ancestor foo@e6dc8efe11cc
49 premerge successful
49 premerge successful
@@ -154,7 +154,7 Graft out of order, skipping a merge and
154 ancestor: 68795b066622, local: ef0ef43d49e7+, remote: 5d205f8b35b6
154 ancestor: 68795b066622, local: ef0ef43d49e7+, remote: 5d205f8b35b6
155 preserving b for resolve of b
155 preserving b for resolve of b
156 b: local copied/moved from a -> m
156 b: local copied/moved from a -> m
157 picked tool 'internal:merge' for b (binary False symlink False)
157 picked tool ':merge' for b (binary False symlink False)
158 merging b and a to b
158 merging b and a to b
159 my b@ef0ef43d49e7+ other a@5d205f8b35b6 ancestor a@68795b066622
159 my b@ef0ef43d49e7+ other a@5d205f8b35b6 ancestor a@68795b066622
160 premerge successful
160 premerge successful
@@ -184,7 +184,7 Graft out of order, skipping a merge and
184 getting d
184 getting d
185 b: remote unchanged -> k
185 b: remote unchanged -> k
186 e: versions differ -> m
186 e: versions differ -> m
187 picked tool 'internal:merge' for e (binary False symlink False)
187 picked tool ':merge' for e (binary False symlink False)
188 merging e
188 merging e
189 my e@1905859650ec+ other e@9c233e8e184d ancestor e@68795b066622
189 my e@1905859650ec+ other e@9c233e8e184d ancestor e@68795b066622
190 warning: conflicts during merge.
190 warning: conflicts during merge.
@@ -66,7 +66,7 https://bz.mercurial-scm.org/672
66 ancestor: c64f439569a9, local: e327dca35ac8+, remote: 746e9549ea96
66 ancestor: c64f439569a9, local: e327dca35ac8+, remote: 746e9549ea96
67 preserving 1a for resolve of 1a
67 preserving 1a for resolve of 1a
68 1a: local copied/moved from 1 -> m
68 1a: local copied/moved from 1 -> m
69 picked tool 'internal:merge' for 1a (binary False symlink False)
69 picked tool ':merge' for 1a (binary False symlink False)
70 merging 1a and 1 to 1a
70 merging 1a and 1 to 1a
71 my 1a@e327dca35ac8+ other 1@746e9549ea96 ancestor 1@81f4b099af3d
71 my 1a@e327dca35ac8+ other 1@746e9549ea96 ancestor 1@81f4b099af3d
72 premerge successful
72 premerge successful
@@ -89,7 +89,7 https://bz.mercurial-scm.org/672
89 preserving 1 for resolve of 1a
89 preserving 1 for resolve of 1a
90 removing 1
90 removing 1
91 1a: remote moved from 1 -> m
91 1a: remote moved from 1 -> m
92 picked tool 'internal:merge' for 1a (binary False symlink False)
92 picked tool ':merge' for 1a (binary False symlink False)
93 merging 1 and 1a to 1a
93 merging 1 and 1a to 1a
94 my 1a@746e9549ea96+ other 1a@e327dca35ac8 ancestor 1@81f4b099af3d
94 my 1a@746e9549ea96+ other 1a@e327dca35ac8 ancestor 1@81f4b099af3d
95 premerge successful
95 premerge successful
@@ -73,7 +73,7 This should use bar@rev2 as the ancestor
73 ancestor: 0f2ff26688b9, local: 2263c1be0967+, remote: 0555950ead28
73 ancestor: 0f2ff26688b9, local: 2263c1be0967+, remote: 0555950ead28
74 preserving bar for resolve of bar
74 preserving bar for resolve of bar
75 bar: versions differ -> m
75 bar: versions differ -> m
76 picked tool 'internal:merge' for bar (binary False symlink False)
76 picked tool ':merge' for bar (binary False symlink False)
77 merging bar
77 merging bar
78 my bar@2263c1be0967+ other bar@0555950ead28 ancestor bar@0f2ff26688b9
78 my bar@2263c1be0967+ other bar@0555950ead28 ancestor bar@0f2ff26688b9
79 premerge successful
79 premerge successful
@@ -159,7 +159,7 This should use bar@rev2 as the ancestor
159 ancestor: 0f2ff26688b9, local: 2263c1be0967+, remote: 3ffa6b9e35f0
159 ancestor: 0f2ff26688b9, local: 2263c1be0967+, remote: 3ffa6b9e35f0
160 preserving bar for resolve of bar
160 preserving bar for resolve of bar
161 bar: versions differ -> m
161 bar: versions differ -> m
162 picked tool 'internal:merge' for bar (binary False symlink False)
162 picked tool ':merge' for bar (binary False symlink False)
163 merging bar
163 merging bar
164 my bar@2263c1be0967+ other bar@3ffa6b9e35f0 ancestor bar@0f2ff26688b9
164 my bar@2263c1be0967+ other bar@3ffa6b9e35f0 ancestor bar@0f2ff26688b9
165 premerge successful
165 premerge successful
@@ -83,7 +83,7 Criss cross merging
83 f1: remote is newer -> g
83 f1: remote is newer -> g
84 getting f1
84 getting f1
85 f2: versions differ -> m
85 f2: versions differ -> m
86 picked tool 'internal:dump' for f2 (binary False symlink False)
86 picked tool ':dump' for f2 (binary False symlink False)
87 merging f2
87 merging f2
88 my f2@3b08d01b0ab5+ other f2@adfe50279922 ancestor f2@40494bf2444c
88 my f2@3b08d01b0ab5+ other f2@adfe50279922 ancestor f2@40494bf2444c
89 1 files updated, 0 files merged, 0 files removed, 1 files unresolved
89 1 files updated, 0 files merged, 0 files removed, 1 files unresolved
@@ -36,7 +36,7 Symlink is local parent, executable is o
36 ancestor: c334dc3be0da, local: 521a1e40188f+, remote: 3574f3e69b1c
36 ancestor: c334dc3be0da, local: 521a1e40188f+, remote: 3574f3e69b1c
37 preserving a for resolve of a
37 preserving a for resolve of a
38 a: versions differ -> m
38 a: versions differ -> m
39 picked tool 'internal:merge' for a (binary False symlink True)
39 picked tool ':merge' for a (binary False symlink True)
40 merging a
40 merging a
41 my a@521a1e40188f+ other a@3574f3e69b1c ancestor a@c334dc3be0da
41 my a@521a1e40188f+ other a@3574f3e69b1c ancestor a@c334dc3be0da
42 warning: internal :merge cannot merge symlinks for a
42 warning: internal :merge cannot merge symlinks for a
@@ -69,7 +69,7 Symlink is other parent, executable is l
69 ancestor: c334dc3be0da, local: 3574f3e69b1c+, remote: 521a1e40188f
69 ancestor: c334dc3be0da, local: 3574f3e69b1c+, remote: 521a1e40188f
70 preserving a for resolve of a
70 preserving a for resolve of a
71 a: versions differ -> m
71 a: versions differ -> m
72 picked tool 'internal:merge' for a (binary False symlink True)
72 picked tool ':merge' for a (binary False symlink True)
73 merging a
73 merging a
74 my a@3574f3e69b1c+ other a@521a1e40188f ancestor a@c334dc3be0da
74 my a@3574f3e69b1c+ other a@521a1e40188f ancestor a@c334dc3be0da
75 warning: internal :merge cannot merge symlinks for a
75 warning: internal :merge cannot merge symlinks for a
@@ -86,7 +86,7 pull and merge from test-a again
86 ancestor: 96b70246a118, local: 50c3a7e29886+, remote: 40d11a4173a8
86 ancestor: 96b70246a118, local: 50c3a7e29886+, remote: 40d11a4173a8
87 preserving test.txt for resolve of test.txt
87 preserving test.txt for resolve of test.txt
88 test.txt: versions differ -> m
88 test.txt: versions differ -> m
89 picked tool 'internal:merge' for test.txt (binary False symlink False)
89 picked tool ':merge' for test.txt (binary False symlink False)
90 merging test.txt
90 merging test.txt
91 my test.txt@50c3a7e29886+ other test.txt@40d11a4173a8 ancestor test.txt@96b70246a118
91 my test.txt@50c3a7e29886+ other test.txt@40d11a4173a8 ancestor test.txt@96b70246a118
92 warning: conflicts during merge.
92 warning: conflicts during merge.
@@ -41,7 +41,7
41 b2: remote created -> g
41 b2: remote created -> g
42 getting b2
42 getting b2
43 b: remote moved from a -> m
43 b: remote moved from a -> m
44 picked tool 'internal:merge' for b (binary False symlink False)
44 picked tool ':merge' for b (binary False symlink False)
45 merging a and b to b
45 merging a and b to b
46 my b@044f8520aeeb+ other b@85c198ef2f6c ancestor a@af1939970a1c
46 my b@044f8520aeeb+ other b@85c198ef2f6c ancestor a@af1939970a1c
47 premerge successful
47 premerge successful
@@ -297,7 +297,7 merge tests
297 ancestor: 6747d179aa9a, local: 20a0db6fbf6c+, remote: 7af322bc1198
297 ancestor: 6747d179aa9a, local: 20a0db6fbf6c+, remote: 7af322bc1198
298 preserving t for resolve of t
298 preserving t for resolve of t
299 t: versions differ -> m
299 t: versions differ -> m
300 picked tool 'internal:merge' for t (binary False symlink False)
300 picked tool ':merge' for t (binary False symlink False)
301 merging t
301 merging t
302 my t@20a0db6fbf6c+ other t@7af322bc1198 ancestor t@6747d179aa9a
302 my t@20a0db6fbf6c+ other t@7af322bc1198 ancestor t@6747d179aa9a
303 warning: conflicts during merge.
303 warning: conflicts during merge.
General Comments 0
You need to be logged in to leave comments. Login now