##// END OF EJS Templates
merge: suggest 'hg up -C .' for discarding changes, not 'hg up -C'...
Brodie Rao -
r12314:f2daa6ab default
parent child Browse files
Show More
@@ -403,7 +403,7 b' def merge(repo, node, force=None, remind'
403 _showstats(repo, stats)
403 _showstats(repo, stats)
404 if stats[3]:
404 if stats[3]:
405 repo.ui.status(_("use 'hg resolve' to retry unresolved file merges "
405 repo.ui.status(_("use 'hg resolve' to retry unresolved file merges "
406 "or 'hg update -C' to abandon\n"))
406 "or 'hg update -C .' to abandon\n"))
407 elif remind:
407 elif remind:
408 repo.ui.status(_("(branch merge, don't forget to commit)\n"))
408 repo.ui.status(_("(branch merge, don't forget to commit)\n"))
409 return stats[3] > 0
409 return stats[3] > 0
@@ -53,7 +53,7 b' should fail'
53 warning: conflicts during merge.
53 warning: conflicts during merge.
54 merging a failed!
54 merging a failed!
55 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
55 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
56 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
56 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
57 $ hg st
57 $ hg st
58 M a
58 M a
59 ? a.orig
59 ? a.orig
@@ -31,7 +31,7 b' Merging a conflict araises'
31 warning: conflicts during merge.
31 warning: conflicts during merge.
32 merging A failed!
32 merging A failed!
33 1 files updated, 0 files merged, 0 files removed, 1 files unresolved
33 1 files updated, 0 files merged, 0 files removed, 1 files unresolved
34 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
34 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
35
35
36 Correct the conflict without marking the file as resolved
36 Correct the conflict without marking the file as resolved
37
37
@@ -15,7 +15,7 b''
15 warning: conflicts during merge.
15 warning: conflicts during merge.
16 merging a failed!
16 merging a failed!
17 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
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
18 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
19
19
20 $ hg id
20 $ hg id
21 32e80765d7fe+75234512624c+ tip
21 32e80765d7fe+75234512624c+ tip
@@ -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 or 'hg update -C' to abandon
268 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
269 assuming destination b-hg
269 assuming destination b-hg
270 initializing svn repository 'b-hg'
270 initializing svn repository 'b-hg'
271 initializing svn working copy 'b-hg-wc'
271 initializing svn working copy 'b-hg-wc'
@@ -817,7 +817,7 b' conflict: keyword should stay outside co'
817 warning: conflicts during merge.
817 warning: conflicts during merge.
818 merging m failed!
818 merging m failed!
819 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
819 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
820 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
820 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
821 $ cat m
821 $ cat m
822 $Id$
822 $Id$
823 <<<<<<< local
823 <<<<<<< local
@@ -898,7 +898,7 b' log -p -R repo'
898 warning: conflicts during merge.
898 warning: conflicts during merge.
899 merging foo failed!
899 merging foo failed!
900 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
900 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
901 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
901 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
902 $ echo 'merge 1' > foo
902 $ echo 'merge 1' > foo
903 $ hg resolve -m foo
903 $ hg resolve -m foo
904 $ hg ci -m "First merge, related"
904 $ hg ci -m "First merge, related"
@@ -908,7 +908,7 b' log -p -R repo'
908 warning: conflicts during merge.
908 warning: conflicts during merge.
909 merging foo failed!
909 merging foo failed!
910 1 files updated, 0 files merged, 0 files removed, 1 files unresolved
910 1 files updated, 0 files merged, 0 files removed, 1 files unresolved
911 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
911 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
912 $ echo 'merge 2' > foo
912 $ echo 'merge 2' > foo
913 $ hg resolve -m foo
913 $ hg resolve -m foo
914 $ hg ci -m "Last merge, related"
914 $ hg ci -m "Last merge, related"
@@ -42,7 +42,7 b' Merge using internal:fail tool:'
42
42
43 $ hg merge
43 $ hg merge
44 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
44 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
45 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
45 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
46
46
47 $ cat f
47 $ cat f
48 line 1
48 line 1
@@ -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 or 'hg update -C' to abandon
20 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' 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 or 'hg update -C' to abandon
40 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' 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 or 'hg update -C' to abandon
72 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' 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 or 'hg update -C' to abandon
89 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' 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 or 'hg update -C' to abandon
106 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' 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 or 'hg update -C' to abandon
123 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' 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 or 'hg update -C' to abandon
188 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' 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 or 'hg update -C' to abandon
207 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' 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 or 'hg update -C' to abandon
226 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
227 # cat f
227 # cat f
228 revision 1
228 revision 1
229 space
229 space
@@ -244,7 +244,7 b' true.executable=cat'
244 merging f
244 merging f
245 merging f failed!
245 merging f failed!
246 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
246 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
247 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
247 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
248 # cat f
248 # cat f
249 revision 1
249 revision 1
250 space
250 space
@@ -260,7 +260,7 b' true.executable=cat'
260 # hg update -C 1
260 # hg update -C 1
261 # hg merge -r 2 --config ui.merge=internal:fail
261 # hg merge -r 2 --config ui.merge=internal:fail
262 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
262 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
263 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
263 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
264 # cat f
264 # cat f
265 revision 1
265 revision 1
266 space
266 space
@@ -323,7 +323,7 b' true.executable=cat'
323 # hg merge -r 2 --config ui.merge=internal:dump
323 # hg merge -r 2 --config ui.merge=internal:dump
324 merging f
324 merging f
325 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
325 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
326 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
326 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
327 # cat f
327 # cat f
328 revision 1
328 revision 1
329 space
329 space
@@ -354,7 +354,7 b' true.executable=cat'
354 merging f
354 merging f
355 merging f failed!
355 merging f failed!
356 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
356 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
357 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
357 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
358 # cat f
358 # cat f
359 revision 1
359 revision 1
360 space
360 space
@@ -537,7 +537,7 b' merging f'
537 was merge successful (yn)? n
537 was merge successful (yn)? n
538 merging f failed!
538 merging f failed!
539 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
539 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
540 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
540 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
541 # cat f
541 # cat f
542 revision 1
542 revision 1
543 space
543 space
@@ -47,7 +47,7 b' now pull and merge from test-a'
47 warning: conflicts during merge.
47 warning: conflicts during merge.
48 merging test.txt failed!
48 merging test.txt failed!
49 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
49 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
50 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
50 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
51 resolve conflict
51 resolve conflict
52 $ cat >test.txt <<"EOF"
52 $ cat >test.txt <<"EOF"
53 > one
53 > one
@@ -91,7 +91,7 b' pull and merge from test-a again'
91 warning: conflicts during merge.
91 warning: conflicts during merge.
92 merging test.txt failed!
92 merging test.txt failed!
93 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
93 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
94 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
94 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
95
95
96 $ cat test.txt
96 $ cat test.txt
97 one
97 one
@@ -30,7 +30,7 b' test with the rename on the remote side'
30 merging bar failed!
30 merging bar failed!
31 merging foo and baz to baz
31 merging foo and baz to baz
32 1 files updated, 1 files merged, 0 files removed, 1 files unresolved
32 1 files updated, 1 files merged, 0 files removed, 1 files unresolved
33 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
33 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
34 $ hg resolve -l
34 $ hg resolve -l
35 U bar
35 U bar
36 R baz
36 R baz
@@ -43,7 +43,7 b' test with the rename on the local side'
43 merging bar failed!
43 merging bar failed!
44 merging baz and foo to baz
44 merging baz and foo to baz
45 1 files updated, 1 files merged, 0 files removed, 1 files unresolved
45 1 files updated, 1 files merged, 0 files removed, 1 files unresolved
46 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
46 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
47
47
48 show unresolved
48 show unresolved
49 $ hg resolve -l
49 $ hg resolve -l
@@ -53,7 +53,7 b' merging a'
53 warning: conflicts during merge.
53 warning: conflicts during merge.
54 merging a failed!
54 merging a failed!
55 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
55 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
56 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
56 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
57 abort: cannot manage merge changesets
57 abort: cannot manage merge changesets
58 %%% hg headers
58 %%% hg headers
59 adding a
59 adding a
@@ -116,5 +116,5 b' merging a'
116 warning: conflicts during merge.
116 warning: conflicts during merge.
117 merging a failed!
117 merging a failed!
118 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
118 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
119 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
119 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
120 abort: cannot manage merge changesets
120 abort: cannot manage merge changesets
@@ -23,7 +23,7 b' failing merge'
23
23
24 $ HGMERGE=internal:fail hg merge
24 $ HGMERGE=internal:fail hg merge
25 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
25 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
26 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
26 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
27
27
28 $ echo resolved > file
28 $ echo resolved > file
29 $ hg resolve -m file
29 $ hg resolve -m file
@@ -267,7 +267,7 b' test unknown color'
267 warning: conflicts during merge.
267 warning: conflicts during merge.
268 merging b failed!
268 merging b failed!
269 0 files updated, 0 files merged, 0 files removed, 2 files unresolved
269 0 files updated, 0 files merged, 0 files removed, 2 files unresolved
270 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
270 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
271 $ hg resolve -m b
271 $ hg resolve -m b
272
272
273 hg resolve with one unresolved, one resolved:
273 hg resolve with one unresolved, one resolved:
@@ -217,7 +217,7 b' merge tests'
217 warning: conflicts during merge.
217 warning: conflicts during merge.
218 merging t failed!
218 merging t failed!
219 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
219 0 files updated, 0 files merged, 0 files removed, 1 files unresolved
220 use 'hg resolve' to retry unresolved file merges or 'hg update -C' to abandon
220 use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
221 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
221 0 files updated, 0 files merged, 0 files removed, 0 files unresolved
222 (branch merge, don't forget to commit)
222 (branch merge, don't forget to commit)
223
223
General Comments 0
You need to be logged in to leave comments. Login now