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