##// END OF EJS Templates
merge: better error messages to lead users to hg update --clean to abandon merges....
Augie Fackler -
r7821:9fe7e6ac default
parent child Browse files
Show More
@@ -274,7 +274,8 b' def merge(repo, node, force=None, remind'
274 stats = _merge.update(repo, node, True, force, False)
274 stats = _merge.update(repo, node, True, force, False)
275 _showstats(repo, stats)
275 _showstats(repo, stats)
276 if stats[3]:
276 if stats[3]:
277 repo.ui.status(_("use 'hg resolve' to retry unresolved file merges\n"))
277 repo.ui.status(_("use 'hg resolve' to retry unresolved file merges "
278 "or 'hg up --clean' to abandon\n"))
278 elif remind:
279 elif remind:
279 repo.ui.status(_("(branch merge, don't forget to commit)\n"))
280 repo.ui.status(_("(branch merge, don't forget to commit)\n"))
280 return stats[3] > 0
281 return stats[3] > 0
@@ -18,7 +18,7 b' merging a'
18 warning: conflicts during merge.
18 warning: conflicts during merge.
19 merging a failed!
19 merging a failed!
20 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
20 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
21 use 'hg resolve' to retry unresolved file merges
21 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
22 M a
22 M a
23 ? a.orig
23 ? a.orig
24 % should fail
24 % should fail
@@ -6,7 +6,7 b' merging A'
6 warning: conflicts during merge.
6 warning: conflicts during merge.
7 merging A failed!
7 merging A failed!
8 1 files updated, 0 files merged, 0 files removed, 1 files unresolved
8 1 files updated, 0 files merged, 0 files removed, 1 files unresolved
9 use 'hg resolve' to retry unresolved file merges
9 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
10
10
11 % Correct the conflict without marking the file as resolved
11 % Correct the conflict without marking the file as resolved
12 abort: unresolved merge conflicts (see hg resolve)
12 abort: unresolved merge conflicts (see hg resolve)
@@ -4,7 +4,7 b' merging a'
4 warning: conflicts during merge.
4 warning: conflicts during merge.
5 merging a failed!
5 merging a failed!
6 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
6 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
7 use 'hg resolve' to retry unresolved file merges
7 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
8 e7fe8eb3e180+0d24b7662d3e+ tip
8 e7fe8eb3e180+0d24b7662d3e+ tip
9 <<<<<<< local
9 <<<<<<< local
10 something else
10 something else
@@ -265,7 +265,7 b' merging b'
265 warning: conflicts during merge.
265 warning: conflicts during merge.
266 merging b failed!
266 merging b failed!
267 2 files updated, 0 files merged, 0 files removed, 1 files unresolved
267 2 files updated, 0 files merged, 0 files removed, 1 files unresolved
268 use 'hg resolve' to retry unresolved file merges
268 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
269 assuming destination b-hg
269 assuming destination b-hg
270 initializing svn repo 'b-hg'
270 initializing svn repo 'b-hg'
271 initializing svn wc 'b-hg-wc'
271 initializing svn wc 'b-hg-wc'
@@ -458,7 +458,7 b' merging m'
458 warning: conflicts during merge.
458 warning: conflicts during merge.
459 merging m failed!
459 merging m failed!
460 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
460 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
461 use 'hg resolve' to retry unresolved file merges
461 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
462 % keyword stays outside conflict zone
462 % keyword stays outside conflict zone
463 $Id$
463 $Id$
464 <<<<<<< local
464 <<<<<<< local
@@ -9,7 +9,7 b' 1 files updated, 0 files merged, 0 files'
9 created new head
9 created new head
10 # merge using internal:fail tool
10 # merge using internal:fail tool
11 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
11 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
12 use 'hg resolve' to retry unresolved file merges
12 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
13 line 1
13 line 1
14 line 2
14 line 2
15 third line
15 third line
@@ -17,7 +17,7 b' merging f'
17 warning: conflicts during merge.
17 warning: conflicts during merge.
18 merging f failed!
18 merging f failed!
19 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
19 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
20 use 'hg resolve' to retry unresolved file merges
20 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
21 # cat f
21 # cat f
22 <<<<<<< local
22 <<<<<<< local
23 revision 1
23 revision 1
@@ -37,7 +37,7 b' false.whatever='
37 merging f
37 merging f
38 merging f failed!
38 merging f failed!
39 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
39 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
40 use 'hg resolve' to retry unresolved file merges
40 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
41 # cat f
41 # cat f
42 revision 1
42 revision 1
43 space
43 space
@@ -69,7 +69,7 b' true.priority=1'
69 merging f
69 merging f
70 merging f failed!
70 merging f failed!
71 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
71 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
72 use 'hg resolve' to retry unresolved file merges
72 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
73 # cat f
73 # cat f
74 revision 1
74 revision 1
75 space
75 space
@@ -86,7 +86,7 b' true.priority=1'
86 merging f
86 merging f
87 merging f failed!
87 merging f failed!
88 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
88 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
89 use 'hg resolve' to retry unresolved file merges
89 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
90 # cat f
90 # cat f
91 revision 1
91 revision 1
92 space
92 space
@@ -103,7 +103,7 b' true.priority=1'
103 merging f
103 merging f
104 merging f failed!
104 merging f failed!
105 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
105 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
106 use 'hg resolve' to retry unresolved file merges
106 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
107 # cat f
107 # cat f
108 revision 1
108 revision 1
109 space
109 space
@@ -120,7 +120,7 b' true.priority=1'
120 merging f
120 merging f
121 merging f failed!
121 merging f failed!
122 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
122 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
123 use 'hg resolve' to retry unresolved file merges
123 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
124 # cat f
124 # cat f
125 revision 1
125 revision 1
126 space
126 space
@@ -185,7 +185,7 b' true.executable=cat'
185 merging f
185 merging f
186 merging f failed!
186 merging f failed!
187 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
187 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
188 use 'hg resolve' to retry unresolved file merges
188 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
189 # cat f
189 # cat f
190 revision 1
190 revision 1
191 space
191 space
@@ -204,7 +204,7 b" couldn't find merge tool true specified "
204 merging f
204 merging f
205 merging f failed!
205 merging f failed!
206 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
206 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
207 use 'hg resolve' to retry unresolved file merges
207 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
208 # cat f
208 # cat f
209 revision 1
209 revision 1
210 space
210 space
@@ -223,7 +223,7 b" couldn't find merge tool true specified "
223 merging f
223 merging f
224 merging f failed!
224 merging f failed!
225 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
225 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
226 use 'hg resolve' to retry unresolved file merges
226 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
227 # cat f
227 # cat f
228 revision 1
228 revision 1
229 space
229 space
@@ -385,7 +385,7 b' space'
385 merging f
385 merging f
386 merging f failed!
386 merging f failed!
387 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
387 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
388 use 'hg resolve' to retry unresolved file merges
388 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
389 # cat f
389 # cat f
390 revision 1
390 revision 1
391 space
391 space
@@ -11,7 +11,7 b' merging test.txt'
11 warning: conflicts during merge.
11 warning: conflicts during merge.
12 merging test.txt failed!
12 merging test.txt failed!
13 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
13 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
14 use 'hg resolve' to retry unresolved file merges
14 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
15 pulling from ../test-a
15 pulling from ../test-a
16 searching for changes
16 searching for changes
17 adding changesets
17 adding changesets
@@ -31,7 +31,7 b' my test.txt@451c744aabcc+ other test.txt'
31 warning: conflicts during merge.
31 warning: conflicts during merge.
32 merging test.txt failed!
32 merging test.txt failed!
33 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
33 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
34 use 'hg resolve' to retry unresolved file merges
34 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
35 one
35 one
36 <<<<<<< local
36 <<<<<<< local
37 two-point-five
37 two-point-five
@@ -7,7 +7,7 b' merging bar'
7 merging bar failed!
7 merging bar failed!
8 merging foo and baz to baz
8 merging foo and baz to baz
9 1 files updated, 1 files merged, 0 files removed, 1 files unresolved
9 1 files updated, 1 files merged, 0 files removed, 1 files unresolved
10 use 'hg resolve' to retry unresolved file merges
10 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
11 U bar
11 U bar
12 R baz
12 R baz
13 3 files updated, 0 files merged, 1 files removed, 0 files unresolved
13 3 files updated, 0 files merged, 1 files removed, 0 files unresolved
@@ -15,7 +15,7 b' merging bar'
15 merging bar failed!
15 merging bar failed!
16 merging baz and foo to baz
16 merging baz and foo to baz
17 1 files updated, 1 files merged, 0 files removed, 1 files unresolved
17 1 files updated, 1 files merged, 0 files removed, 1 files unresolved
18 use 'hg resolve' to retry unresolved file merges
18 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
19 % show unresolved
19 % show unresolved
20 U bar
20 U bar
21 R baz
21 R baz
@@ -4,5 +4,5 b' 1 files updated, 0 files merged, 0 files'
4 created new head
4 created new head
5 % failing merge
5 % failing merge
6 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
6 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
7 use 'hg resolve' to retry unresolved file merges
7 use 'hg resolve' to retry unresolved file merges or 'hg up --clean' to abandon
8 % resolve -l, should be empty
8 % resolve -l, should be empty
General Comments 0
You need to be logged in to leave comments. Login now