Show More
@@ -46,12 +46,6 b' revision 3 - simple to merge' | |||||
46 | > hg stat |
|
46 | > hg stat | |
47 | > rm -f f.orig |
|
47 | > rm -f f.orig | |
48 | > } |
|
48 | > } | |
49 | $ domerge() { |
|
|||
50 | > beforemerge |
|
|||
51 | > echo "# hg merge $*" |
|
|||
52 | > hg merge $* |
|
|||
53 | > aftermerge |
|
|||
54 | > } |
|
|||
55 |
|
49 | |||
56 | Tool selection |
|
50 | Tool selection | |
57 |
|
51 | |||
@@ -87,15 +81,17 b' running from a devel copy, not a temp in' | |||||
87 | simplest hgrc using false for merge: |
|
81 | simplest hgrc using false for merge: | |
88 |
|
82 | |||
89 | $ echo "false.whatever=" >> .hg/hgrc |
|
83 | $ echo "false.whatever=" >> .hg/hgrc | |
90 |
$ |
|
84 | $ beforemerge | |
91 | [merge-tools] |
|
85 | [merge-tools] | |
92 | false.whatever= |
|
86 | false.whatever= | |
93 | # hg update -C 1 |
|
87 | # hg update -C 1 | |
94 |
|
|
88 | $ hg merge -r 2 | |
95 | merging f |
|
89 | merging f | |
96 | merging f failed! |
|
90 | merging f failed! | |
97 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
91 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
98 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
92 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
93 | [1] | |||
|
94 | $ aftermerge | |||
99 | # cat f |
|
95 | # cat f | |
100 | revision 1 |
|
96 | revision 1 | |
101 | space |
|
97 | space | |
@@ -132,15 +128,16 b" executable directory in $PATH shouldn't " | |||||
132 | true with higher .priority gets precedence: |
|
128 | true with higher .priority gets precedence: | |
133 |
|
129 | |||
134 | $ echo "true.priority=1" >> .hg/hgrc |
|
130 | $ echo "true.priority=1" >> .hg/hgrc | |
135 |
$ |
|
131 | $ beforemerge | |
136 | [merge-tools] |
|
132 | [merge-tools] | |
137 | false.whatever= |
|
133 | false.whatever= | |
138 | true.priority=1 |
|
134 | true.priority=1 | |
139 | # hg update -C 1 |
|
135 | # hg update -C 1 | |
140 |
|
|
136 | $ hg merge -r 2 | |
141 | merging f |
|
137 | merging f | |
142 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
138 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
143 | (branch merge, don't forget to commit) |
|
139 | (branch merge, don't forget to commit) | |
|
140 | $ aftermerge | |||
144 | # cat f |
|
141 | # cat f | |
145 | revision 1 |
|
142 | revision 1 | |
146 | space |
|
143 | space | |
@@ -149,16 +146,18 b' true with higher .priority gets preceden' | |||||
149 |
|
146 | |||
150 | unless lowered on command line: |
|
147 | unless lowered on command line: | |
151 |
|
148 | |||
152 | $ domerge -r 2 --config merge-tools.true.priority=-7 |
|
149 | $ beforemerge | |
153 | [merge-tools] |
|
150 | [merge-tools] | |
154 | false.whatever= |
|
151 | false.whatever= | |
155 | true.priority=1 |
|
152 | true.priority=1 | |
156 | # hg update -C 1 |
|
153 | # hg update -C 1 | |
157 |
|
|
154 | $ hg merge -r 2 --config merge-tools.true.priority=-7 | |
158 | merging f |
|
155 | merging f | |
159 | merging f failed! |
|
156 | merging f failed! | |
160 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
157 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
161 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
158 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
159 | [1] | |||
|
160 | $ aftermerge | |||
162 | # cat f |
|
161 | # cat f | |
163 | revision 1 |
|
162 | revision 1 | |
164 | space |
|
163 | space | |
@@ -168,16 +167,18 b' unless lowered on command line:' | |||||
168 |
|
167 | |||
169 | or false set higher on command line: |
|
168 | or false set higher on command line: | |
170 |
|
169 | |||
171 | $ domerge -r 2 --config merge-tools.false.priority=117 |
|
170 | $ beforemerge | |
172 | [merge-tools] |
|
171 | [merge-tools] | |
173 | false.whatever= |
|
172 | false.whatever= | |
174 | true.priority=1 |
|
173 | true.priority=1 | |
175 | # hg update -C 1 |
|
174 | # hg update -C 1 | |
176 |
|
|
175 | $ hg merge -r 2 --config merge-tools.false.priority=117 | |
177 | merging f |
|
176 | merging f | |
178 | merging f failed! |
|
177 | merging f failed! | |
179 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
178 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
180 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
179 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
180 | [1] | |||
|
181 | $ aftermerge | |||
181 | # cat f |
|
182 | # cat f | |
182 | revision 1 |
|
183 | revision 1 | |
183 | space |
|
184 | space | |
@@ -187,16 +188,18 b' or false set higher on command line:' | |||||
187 |
|
188 | |||
188 | or true.executable not found in PATH: |
|
189 | or true.executable not found in PATH: | |
189 |
|
190 | |||
190 | $ domerge -r 2 --config merge-tools.true.executable=nonexistingmergetool |
|
191 | $ beforemerge | |
191 | [merge-tools] |
|
192 | [merge-tools] | |
192 | false.whatever= |
|
193 | false.whatever= | |
193 | true.priority=1 |
|
194 | true.priority=1 | |
194 | # hg update -C 1 |
|
195 | # hg update -C 1 | |
195 |
|
|
196 | $ hg merge -r 2 --config merge-tools.true.executable=nonexistingmergetool | |
196 | merging f |
|
197 | merging f | |
197 | merging f failed! |
|
198 | merging f failed! | |
198 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
199 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
199 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
200 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
201 | [1] | |||
|
202 | $ aftermerge | |||
200 | # cat f |
|
203 | # cat f | |
201 | revision 1 |
|
204 | revision 1 | |
202 | space |
|
205 | space | |
@@ -206,16 +209,18 b' or true.executable not found in PATH:' | |||||
206 |
|
209 | |||
207 | or true.executable with bogus path: |
|
210 | or true.executable with bogus path: | |
208 |
|
211 | |||
209 | $ domerge -r 2 --config merge-tools.true.executable=/nonexisting/mergetool |
|
212 | $ beforemerge | |
210 | [merge-tools] |
|
213 | [merge-tools] | |
211 | false.whatever= |
|
214 | false.whatever= | |
212 | true.priority=1 |
|
215 | true.priority=1 | |
213 | # hg update -C 1 |
|
216 | # hg update -C 1 | |
214 |
|
|
217 | $ hg merge -r 2 --config merge-tools.true.executable=/nonexisting/mergetool | |
215 | merging f |
|
218 | merging f | |
216 | merging f failed! |
|
219 | merging f failed! | |
217 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
220 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
218 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
221 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
222 | [1] | |||
|
223 | $ aftermerge | |||
219 | # cat f |
|
224 | # cat f | |
220 | revision 1 |
|
225 | revision 1 | |
221 | space |
|
226 | space | |
@@ -226,13 +231,13 b' or true.executable with bogus path:' | |||||
226 | but true.executable set to cat found in PATH works: |
|
231 | but true.executable set to cat found in PATH works: | |
227 |
|
232 | |||
228 | $ echo "true.executable=cat" >> .hg/hgrc |
|
233 | $ echo "true.executable=cat" >> .hg/hgrc | |
229 |
$ |
|
234 | $ beforemerge | |
230 | [merge-tools] |
|
235 | [merge-tools] | |
231 | false.whatever= |
|
236 | false.whatever= | |
232 | true.priority=1 |
|
237 | true.priority=1 | |
233 | true.executable=cat |
|
238 | true.executable=cat | |
234 | # hg update -C 1 |
|
239 | # hg update -C 1 | |
235 |
|
|
240 | $ hg merge -r 2 | |
236 | merging f |
|
241 | merging f | |
237 | revision 1 |
|
242 | revision 1 | |
238 | space |
|
243 | space | |
@@ -242,6 +247,7 b' but true.executable set to cat found in ' | |||||
242 | space |
|
247 | space | |
243 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
248 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
244 | (branch merge, don't forget to commit) |
|
249 | (branch merge, don't forget to commit) | |
|
250 | $ aftermerge | |||
245 | # cat f |
|
251 | # cat f | |
246 | revision 1 |
|
252 | revision 1 | |
247 | space |
|
253 | space | |
@@ -250,13 +256,13 b' but true.executable set to cat found in ' | |||||
250 |
|
256 | |||
251 | and true.executable set to cat with path works: |
|
257 | and true.executable set to cat with path works: | |
252 |
|
258 | |||
253 | $ domerge -r 2 --config merge-tools.true.executable=cat |
|
259 | $ beforemerge | |
254 | [merge-tools] |
|
260 | [merge-tools] | |
255 | false.whatever= |
|
261 | false.whatever= | |
256 | true.priority=1 |
|
262 | true.priority=1 | |
257 | true.executable=cat |
|
263 | true.executable=cat | |
258 | # hg update -C 1 |
|
264 | # hg update -C 1 | |
259 |
|
|
265 | $ hg merge -r 2 --config merge-tools.true.executable=cat | |
260 | merging f |
|
266 | merging f | |
261 | revision 1 |
|
267 | revision 1 | |
262 | space |
|
268 | space | |
@@ -266,6 +272,7 b' and true.executable set to cat with path' | |||||
266 | space |
|
272 | space | |
267 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
273 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
268 | (branch merge, don't forget to commit) |
|
274 | (branch merge, don't forget to commit) | |
|
275 | $ aftermerge | |||
269 | # cat f |
|
276 | # cat f | |
270 | revision 1 |
|
277 | revision 1 | |
271 | space |
|
278 | space | |
@@ -279,17 +286,18 b' environment variables in true.executable' | |||||
279 | > echo 'custom merge tool' |
|
286 | > echo 'custom merge tool' | |
280 | > EOF |
|
287 | > EOF | |
281 | $ chmod +x $HGTMP/merge.sh |
|
288 | $ chmod +x $HGTMP/merge.sh | |
282 | $ domerge -r 2 --config merge-tools.true.executable='$HGTMP/merge.sh' |
|
289 | $ beforemerge | |
283 | [merge-tools] |
|
290 | [merge-tools] | |
284 | false.whatever= |
|
291 | false.whatever= | |
285 | true.priority=1 |
|
292 | true.priority=1 | |
286 | true.executable=cat |
|
293 | true.executable=cat | |
287 | # hg update -C 1 |
|
294 | # hg update -C 1 | |
288 |
|
|
295 | $ hg merge -r 2 --config merge-tools.true.executable=$HGTMP/merge.sh | |
289 | merging f |
|
296 | merging f | |
290 | custom merge tool |
|
297 | custom merge tool | |
291 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
298 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
292 | (branch merge, don't forget to commit) |
|
299 | (branch merge, don't forget to commit) | |
|
300 | $ aftermerge | |||
293 | # cat f |
|
301 | # cat f | |
294 | revision 1 |
|
302 | revision 1 | |
295 | space |
|
303 | space | |
@@ -300,17 +308,19 b' Tool selection and merge-patterns' | |||||
300 |
|
308 | |||
301 | merge-patterns specifies new tool false: |
|
309 | merge-patterns specifies new tool false: | |
302 |
|
310 | |||
303 | $ domerge -r 2 --config merge-patterns.f=false |
|
311 | $ beforemerge | |
304 | [merge-tools] |
|
312 | [merge-tools] | |
305 | false.whatever= |
|
313 | false.whatever= | |
306 | true.priority=1 |
|
314 | true.priority=1 | |
307 | true.executable=cat |
|
315 | true.executable=cat | |
308 | # hg update -C 1 |
|
316 | # hg update -C 1 | |
309 |
|
|
317 | $ hg merge -r 2 --config merge-patterns.f=false | |
310 | merging f |
|
318 | merging f | |
311 | merging f failed! |
|
319 | merging f failed! | |
312 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
320 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
313 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
321 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
322 | [1] | |||
|
323 | $ aftermerge | |||
314 | # cat f |
|
324 | # cat f | |
315 | revision 1 |
|
325 | revision 1 | |
316 | space |
|
326 | space | |
@@ -320,18 +330,20 b' merge-patterns specifies new tool false:' | |||||
320 |
|
330 | |||
321 | merge-patterns specifies executable not found in PATH and gets warning: |
|
331 | merge-patterns specifies executable not found in PATH and gets warning: | |
322 |
|
332 | |||
323 | $ domerge -r 2 --config merge-patterns.f=true --config merge-tools.true.executable=nonexistingmergetool |
|
333 | $ beforemerge | |
324 | [merge-tools] |
|
334 | [merge-tools] | |
325 | false.whatever= |
|
335 | false.whatever= | |
326 | true.priority=1 |
|
336 | true.priority=1 | |
327 | true.executable=cat |
|
337 | true.executable=cat | |
328 | # hg update -C 1 |
|
338 | # hg update -C 1 | |
329 |
|
|
339 | $ hg merge -r 2 --config merge-patterns.f=true --config merge-tools.true.executable=nonexistingmergetool | |
330 | couldn't find merge tool true specified for f |
|
340 | couldn't find merge tool true specified for f | |
331 | merging f |
|
341 | merging f | |
332 | merging f failed! |
|
342 | merging f failed! | |
333 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
343 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
334 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
344 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
345 | [1] | |||
|
346 | $ aftermerge | |||
335 | # cat f |
|
347 | # cat f | |
336 | revision 1 |
|
348 | revision 1 | |
337 | space |
|
349 | space | |
@@ -341,18 +353,20 b' merge-patterns specifies executable not ' | |||||
341 |
|
353 | |||
342 | merge-patterns specifies executable with bogus path and gets warning: |
|
354 | merge-patterns specifies executable with bogus path and gets warning: | |
343 |
|
355 | |||
344 | $ domerge -r 2 --config merge-patterns.f=true --config merge-tools.true.executable=/nonexisting/mergetool |
|
356 | $ beforemerge | |
345 | [merge-tools] |
|
357 | [merge-tools] | |
346 | false.whatever= |
|
358 | false.whatever= | |
347 | true.priority=1 |
|
359 | true.priority=1 | |
348 | true.executable=cat |
|
360 | true.executable=cat | |
349 | # hg update -C 1 |
|
361 | # hg update -C 1 | |
350 |
|
|
362 | $ hg merge -r 2 --config merge-patterns.f=true --config merge-tools.true.executable=/nonexisting/mergetool | |
351 | couldn't find merge tool true specified for f |
|
363 | couldn't find merge tool true specified for f | |
352 | merging f |
|
364 | merging f | |
353 | merging f failed! |
|
365 | merging f failed! | |
354 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
366 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
355 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
367 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
368 | [1] | |||
|
369 | $ aftermerge | |||
356 | # cat f |
|
370 | # cat f | |
357 | revision 1 |
|
371 | revision 1 | |
358 | space |
|
372 | space | |
@@ -364,17 +378,19 b' ui.merge overrules priority' | |||||
364 |
|
378 | |||
365 | ui.merge specifies false: |
|
379 | ui.merge specifies false: | |
366 |
|
380 | |||
367 | $ domerge -r 2 --config ui.merge=false |
|
381 | $ beforemerge | |
368 | [merge-tools] |
|
382 | [merge-tools] | |
369 | false.whatever= |
|
383 | false.whatever= | |
370 | true.priority=1 |
|
384 | true.priority=1 | |
371 | true.executable=cat |
|
385 | true.executable=cat | |
372 | # hg update -C 1 |
|
386 | # hg update -C 1 | |
373 |
|
|
387 | $ hg merge -r 2 --config ui.merge=false | |
374 | merging f |
|
388 | merging f | |
375 | merging f failed! |
|
389 | merging f failed! | |
376 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
390 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
377 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
391 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
392 | [1] | |||
|
393 | $ aftermerge | |||
378 | # cat f |
|
394 | # cat f | |
379 | revision 1 |
|
395 | revision 1 | |
380 | space |
|
396 | space | |
@@ -384,15 +400,17 b' ui.merge specifies false:' | |||||
384 |
|
400 | |||
385 | ui.merge specifies internal:fail: |
|
401 | ui.merge specifies internal:fail: | |
386 |
|
402 | |||
387 | $ domerge -r 2 --config ui.merge=internal:fail |
|
403 | $ beforemerge | |
388 | [merge-tools] |
|
404 | [merge-tools] | |
389 | false.whatever= |
|
405 | false.whatever= | |
390 | true.priority=1 |
|
406 | true.priority=1 | |
391 | true.executable=cat |
|
407 | true.executable=cat | |
392 | # hg update -C 1 |
|
408 | # hg update -C 1 | |
393 |
|
|
409 | $ hg merge -r 2 --config ui.merge=internal:fail | |
394 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
410 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
395 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
411 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
412 | [1] | |||
|
413 | $ aftermerge | |||
396 | # cat f |
|
414 | # cat f | |
397 | revision 1 |
|
415 | revision 1 | |
398 | space |
|
416 | space | |
@@ -401,15 +419,16 b' ui.merge specifies internal:fail:' | |||||
401 |
|
419 | |||
402 | ui.merge specifies internal:local: |
|
420 | ui.merge specifies internal:local: | |
403 |
|
421 | |||
404 | $ domerge -r 2 --config ui.merge=internal:local |
|
422 | $ beforemerge | |
405 | [merge-tools] |
|
423 | [merge-tools] | |
406 | false.whatever= |
|
424 | false.whatever= | |
407 | true.priority=1 |
|
425 | true.priority=1 | |
408 | true.executable=cat |
|
426 | true.executable=cat | |
409 | # hg update -C 1 |
|
427 | # hg update -C 1 | |
410 |
|
|
428 | $ hg merge -r 2 --config ui.merge=internal:local | |
411 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
429 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
412 | (branch merge, don't forget to commit) |
|
430 | (branch merge, don't forget to commit) | |
|
431 | $ aftermerge | |||
413 | # cat f |
|
432 | # cat f | |
414 | revision 1 |
|
433 | revision 1 | |
415 | space |
|
434 | space | |
@@ -418,15 +437,16 b' ui.merge specifies internal:local:' | |||||
418 |
|
437 | |||
419 | ui.merge specifies internal:other: |
|
438 | ui.merge specifies internal:other: | |
420 |
|
439 | |||
421 | $ domerge -r 2 --config ui.merge=internal:other |
|
440 | $ beforemerge | |
422 | [merge-tools] |
|
441 | [merge-tools] | |
423 | false.whatever= |
|
442 | false.whatever= | |
424 | true.priority=1 |
|
443 | true.priority=1 | |
425 | true.executable=cat |
|
444 | true.executable=cat | |
426 | # hg update -C 1 |
|
445 | # hg update -C 1 | |
427 |
|
|
446 | $ hg merge -r 2 --config ui.merge=internal:other | |
428 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
447 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
429 | (branch merge, don't forget to commit) |
|
448 | (branch merge, don't forget to commit) | |
|
449 | $ aftermerge | |||
430 | # cat f |
|
450 | # cat f | |
431 | revision 2 |
|
451 | revision 2 | |
432 | space |
|
452 | space | |
@@ -435,17 +455,18 b' ui.merge specifies internal:other:' | |||||
435 |
|
455 | |||
436 | ui.merge specifies internal:prompt: |
|
456 | ui.merge specifies internal:prompt: | |
437 |
|
457 | |||
438 | $ domerge -r 2 --config ui.merge=internal:prompt |
|
458 | $ beforemerge | |
439 | [merge-tools] |
|
459 | [merge-tools] | |
440 | false.whatever= |
|
460 | false.whatever= | |
441 | true.priority=1 |
|
461 | true.priority=1 | |
442 | true.executable=cat |
|
462 | true.executable=cat | |
443 | # hg update -C 1 |
|
463 | # hg update -C 1 | |
444 |
|
|
464 | $ hg merge -r 2 --config ui.merge=internal:prompt | |
445 | no tool found to merge f |
|
465 | no tool found to merge f | |
446 | keep (l)ocal or take (o)ther? l |
|
466 | keep (l)ocal or take (o)ther? l | |
447 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
467 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
448 | (branch merge, don't forget to commit) |
|
468 | (branch merge, don't forget to commit) | |
|
469 | $ aftermerge | |||
449 | # cat f |
|
470 | # cat f | |
450 | revision 1 |
|
471 | revision 1 | |
451 | space |
|
472 | space | |
@@ -454,16 +475,18 b' ui.merge specifies internal:prompt:' | |||||
454 |
|
475 | |||
455 | ui.merge specifies internal:dump: |
|
476 | ui.merge specifies internal:dump: | |
456 |
|
477 | |||
457 | $ domerge -r 2 --config ui.merge=internal:dump |
|
478 | $ beforemerge | |
458 | [merge-tools] |
|
479 | [merge-tools] | |
459 | false.whatever= |
|
480 | false.whatever= | |
460 | true.priority=1 |
|
481 | true.priority=1 | |
461 | true.executable=cat |
|
482 | true.executable=cat | |
462 | # hg update -C 1 |
|
483 | # hg update -C 1 | |
463 |
|
|
484 | $ hg merge -r 2 --config ui.merge=internal:dump | |
464 | merging f |
|
485 | merging f | |
465 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
486 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
466 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
487 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
488 | [1] | |||
|
489 | $ aftermerge | |||
467 | # cat f |
|
490 | # cat f | |
468 | revision 1 |
|
491 | revision 1 | |
469 | space |
|
492 | space | |
@@ -495,17 +518,19 b' f.other:' | |||||
495 |
|
518 | |||
496 | ui.merge specifies internal:other but is overruled by pattern for false: |
|
519 | ui.merge specifies internal:other but is overruled by pattern for false: | |
497 |
|
520 | |||
498 | $ domerge -r 2 --config ui.merge=internal:other --config merge-patterns.f=false |
|
521 | $ beforemerge | |
499 | [merge-tools] |
|
522 | [merge-tools] | |
500 | false.whatever= |
|
523 | false.whatever= | |
501 | true.priority=1 |
|
524 | true.priority=1 | |
502 | true.executable=cat |
|
525 | true.executable=cat | |
503 | # hg update -C 1 |
|
526 | # hg update -C 1 | |
504 |
|
|
527 | $ hg merge -r 2 --config ui.merge=internal:other --config merge-patterns.f=false | |
505 | merging f |
|
528 | merging f | |
506 | merging f failed! |
|
529 | merging f failed! | |
507 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
530 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
508 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
531 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
532 | [1] | |||
|
533 | $ aftermerge | |||
509 | # cat f |
|
534 | # cat f | |
510 | revision 1 |
|
535 | revision 1 | |
511 | space |
|
536 | space | |
@@ -517,17 +542,19 b' Premerge' | |||||
517 |
|
542 | |||
518 | ui.merge specifies internal:other but is overruled by --tool=false |
|
543 | ui.merge specifies internal:other but is overruled by --tool=false | |
519 |
|
544 | |||
520 | $ domerge -r 2 --config ui.merge=internal:other --tool=false |
|
545 | $ beforemerge | |
521 | [merge-tools] |
|
546 | [merge-tools] | |
522 | false.whatever= |
|
547 | false.whatever= | |
523 | true.priority=1 |
|
548 | true.priority=1 | |
524 | true.executable=cat |
|
549 | true.executable=cat | |
525 | # hg update -C 1 |
|
550 | # hg update -C 1 | |
526 |
|
|
551 | $ hg merge -r 2 --config ui.merge=internal:other --tool=false | |
527 | merging f |
|
552 | merging f | |
528 | merging f failed! |
|
553 | merging f failed! | |
529 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
554 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
530 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
555 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
556 | [1] | |||
|
557 | $ aftermerge | |||
531 | # cat f |
|
558 | # cat f | |
532 | revision 1 |
|
559 | revision 1 | |
533 | space |
|
560 | space | |
@@ -538,17 +565,19 b' ui.merge specifies internal:other but is' | |||||
538 | HGMERGE specifies internal:other but is overruled by --tool=false |
|
565 | HGMERGE specifies internal:other but is overruled by --tool=false | |
539 |
|
566 | |||
540 | $ HGMERGE=internal:other ; export HGMERGE |
|
567 | $ HGMERGE=internal:other ; export HGMERGE | |
541 | $ domerge -r 2 --tool=false |
|
568 | $ beforemerge | |
542 | [merge-tools] |
|
569 | [merge-tools] | |
543 | false.whatever= |
|
570 | false.whatever= | |
544 | true.priority=1 |
|
571 | true.priority=1 | |
545 | true.executable=cat |
|
572 | true.executable=cat | |
546 | # hg update -C 1 |
|
573 | # hg update -C 1 | |
547 |
|
|
574 | $ hg merge -r 2 --tool=false | |
548 | merging f |
|
575 | merging f | |
549 | merging f failed! |
|
576 | merging f failed! | |
550 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
577 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
551 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
578 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
579 | [1] | |||
|
580 | $ aftermerge | |||
552 | # cat f |
|
581 | # cat f | |
553 | revision 1 |
|
582 | revision 1 | |
554 | space |
|
583 | space | |
@@ -560,16 +589,17 b' HGMERGE specifies internal:other but is ' | |||||
560 |
|
589 | |||
561 | Default is silent simplemerge: |
|
590 | Default is silent simplemerge: | |
562 |
|
591 | |||
563 |
$ |
|
592 | $ beforemerge | |
564 | [merge-tools] |
|
593 | [merge-tools] | |
565 | false.whatever= |
|
594 | false.whatever= | |
566 | true.priority=1 |
|
595 | true.priority=1 | |
567 | true.executable=cat |
|
596 | true.executable=cat | |
568 | # hg update -C 1 |
|
597 | # hg update -C 1 | |
569 |
|
|
598 | $ hg merge -r 3 | |
570 | merging f |
|
599 | merging f | |
571 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
600 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
572 | (branch merge, don't forget to commit) |
|
601 | (branch merge, don't forget to commit) | |
|
602 | $ aftermerge | |||
573 | # cat f |
|
603 | # cat f | |
574 | revision 1 |
|
604 | revision 1 | |
575 | space |
|
605 | space | |
@@ -579,16 +609,17 b' Default is silent simplemerge:' | |||||
579 |
|
609 | |||
580 | .premerge=True is same: |
|
610 | .premerge=True is same: | |
581 |
|
611 | |||
582 | $ domerge -r 3 --config merge-tools.true.premerge=True |
|
612 | $ beforemerge | |
583 | [merge-tools] |
|
613 | [merge-tools] | |
584 | false.whatever= |
|
614 | false.whatever= | |
585 | true.priority=1 |
|
615 | true.priority=1 | |
586 | true.executable=cat |
|
616 | true.executable=cat | |
587 | # hg update -C 1 |
|
617 | # hg update -C 1 | |
588 |
|
|
618 | $ hg merge -r 3 --config merge-tools.true.premerge=True | |
589 | merging f |
|
619 | merging f | |
590 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
620 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
591 | (branch merge, don't forget to commit) |
|
621 | (branch merge, don't forget to commit) | |
|
622 | $ aftermerge | |||
592 | # cat f |
|
623 | # cat f | |
593 | revision 1 |
|
624 | revision 1 | |
594 | space |
|
625 | space | |
@@ -598,13 +629,13 b' Default is silent simplemerge:' | |||||
598 |
|
629 | |||
599 | .premerge=False executes merge-tool: |
|
630 | .premerge=False executes merge-tool: | |
600 |
|
631 | |||
601 | $ domerge -r 3 --config merge-tools.true.premerge=False |
|
632 | $ beforemerge | |
602 | [merge-tools] |
|
633 | [merge-tools] | |
603 | false.whatever= |
|
634 | false.whatever= | |
604 | true.priority=1 |
|
635 | true.priority=1 | |
605 | true.executable=cat |
|
636 | true.executable=cat | |
606 | # hg update -C 1 |
|
637 | # hg update -C 1 | |
607 |
|
|
638 | $ hg merge -r 3 --config merge-tools.true.premerge=False | |
608 | merging f |
|
639 | merging f | |
609 | revision 1 |
|
640 | revision 1 | |
610 | space |
|
641 | space | |
@@ -615,6 +646,7 b' Default is silent simplemerge:' | |||||
615 | revision 3 |
|
646 | revision 3 | |
616 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
|
647 | 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | |
617 | (branch merge, don't forget to commit) |
|
648 | (branch merge, don't forget to commit) | |
|
649 | $ aftermerge | |||
618 | # cat f |
|
650 | # cat f | |
619 | revision 1 |
|
651 | revision 1 | |
620 | space |
|
652 | space | |
@@ -745,13 +777,13 b' Merge post-processing' | |||||
745 |
|
777 | |||
746 | cat is a bad merge-tool and doesn't change: |
|
778 | cat is a bad merge-tool and doesn't change: | |
747 |
|
779 | |||
748 | $ domerge -y -r 2 --config merge-tools.true.checkchanged=1 |
|
780 | $ beforemerge | |
749 | [merge-tools] |
|
781 | [merge-tools] | |
750 | false.whatever= |
|
782 | false.whatever= | |
751 | true.priority=1 |
|
783 | true.priority=1 | |
752 | true.executable=cat |
|
784 | true.executable=cat | |
753 | # hg update -C 1 |
|
785 | # hg update -C 1 | |
754 |
|
|
786 | $ hg merge -y -r 2 --config merge-tools.true.checkchanged=1 | |
755 | merging f |
|
787 | merging f | |
756 | revision 1 |
|
788 | revision 1 | |
757 | space |
|
789 | space | |
@@ -764,6 +796,8 b" cat is a bad merge-tool and doesn't chan" | |||||
764 | merging f failed! |
|
796 | merging f failed! | |
765 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved |
|
797 | 0 files updated, 0 files merged, 0 files removed, 1 files unresolved | |
766 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon |
|
798 | use 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon | |
|
799 | [1] | |||
|
800 | $ aftermerge | |||
767 | # cat f |
|
801 | # cat f | |
768 | revision 1 |
|
802 | revision 1 | |
769 | space |
|
803 | space |
General Comments 0
You need to be logged in to leave comments.
Login now