Show More
@@ -80,6 +80,8 try: | |||
|
80 | 80 | sys.exit(0) |
|
81 | 81 | if len(args) != 3: |
|
82 | 82 | raise ParseError(_(b'wrong number of arguments').decode('utf8')) |
|
83 | if len(opts[b'label']) > 2: | |
|
84 | opts[b'mode'] = b'merge3' | |
|
83 | 85 | local, base, other = args |
|
84 | 86 | sys.exit( |
|
85 | 87 | simplemerge.simplemerge( |
@@ -421,14 +421,15 def _premerge(repo, fcd, fco, fca, toolc | |||
|
421 | 421 | ) |
|
422 | 422 | |
|
423 | 423 | if premerge: |
|
424 | mode = b'merge' | |
|
425 | if premerge in {b'keep-merge3', b'keep-mergediff'}: | |
|
426 | 424 |
|
|
427 | 425 |
|
|
428 | 426 |
|
|
429 | 427 |
|
|
428 | mode = b'merge' | |
|
430 | 429 |
|
|
431 | 430 |
|
|
431 | elif premerge == b'keep-merge3': | |
|
432 | mode = b'merge3' | |
|
432 | 433 | r = simplemerge.simplemerge( |
|
433 | 434 | ui, fcd, fca, fco, quiet=True, label=labels, mode=mode |
|
434 | 435 | ) |
@@ -532,7 +533,9 def _imerge3(repo, mynode, fcd, fco, fca | |||
|
532 | 533 | labels = _defaultconflictlabels |
|
533 | 534 | if len(labels) < 3: |
|
534 | 535 | labels.append(b'base') |
|
535 | return _imerge(repo, mynode, fcd, fco, fca, toolconf, backup, labels) | |
|
536 | return _merge( | |
|
537 | repo, mynode, fcd, fco, fca, toolconf, backup, labels, b'merge3' | |
|
538 | ) | |
|
536 | 539 | |
|
537 | 540 | |
|
538 | 541 | @internaltool( |
@@ -506,7 +506,7 def simplemerge(ui, localctx, basectx, o | |||
|
506 | 506 | extrakwargs = { |
|
507 | 507 | 'minimize': True, |
|
508 | 508 | } |
|
509 | if name_base is not None: | |
|
509 | if mode == b'merge3': | |
|
510 | 510 | extrakwargs['base_marker'] = b'|||||||' |
|
511 | 511 | extrakwargs['name_base'] = name_base |
|
512 | 512 | extrakwargs['minimize'] = False |
General Comments 0
You need to be logged in to leave comments.
Login now