##// END OF EJS Templates
filemerge: remove unused arguments from `_merge()`...
Martin von Zweigbergk -
r49428:f970bc61 default
parent child Browse files
Show More
@@ -464,7 +464,7 b' def _mergecheck(repo, mynode, fcd, fco, '
464 return True
464 return True
465
465
466
466
467 def _merge(repo, mynode, fcd, fco, fca, toolconf, backup, labels, mode):
467 def _merge(repo, fcd, fco, fca, labels, mode):
468 """
468 """
469 Uses the internal non-interactive simple merge algorithm for merging
469 Uses the internal non-interactive simple merge algorithm for merging
470 files. It will fail if there are any conflicts and leave markers in
470 files. It will fail if there are any conflicts and leave markers in
@@ -499,9 +499,7 b' def _iunion(repo, mynode, fcd, fco, fca,'
499 Uses the internal non-interactive simple merge algorithm for merging
499 Uses the internal non-interactive simple merge algorithm for merging
500 files. It will use both left and right sides for conflict regions.
500 files. It will use both left and right sides for conflict regions.
501 No markers are inserted."""
501 No markers are inserted."""
502 return _merge(
502 return _merge(repo, fcd, fco, fca, labels, b'union')
503 repo, mynode, fcd, fco, fca, toolconf, backup, labels, b'union'
504 )
505
503
506
504
507 @internaltool(
505 @internaltool(
@@ -519,9 +517,7 b' def _imerge(repo, mynode, fcd, fco, fca,'
519 files. It will fail if there are any conflicts and leave markers in
517 files. It will fail if there are any conflicts and leave markers in
520 the partially merged file. Markers will have two sections, one for each side
518 the partially merged file. Markers will have two sections, one for each side
521 of merge."""
519 of merge."""
522 return _merge(
520 return _merge(repo, fcd, fco, fca, labels, b'merge')
523 repo, mynode, fcd, fco, fca, toolconf, backup, labels, b'merge'
524 )
525
521
526
522
527 @internaltool(
523 @internaltool(
@@ -543,9 +539,7 b' def _imerge3(repo, mynode, fcd, fco, fca'
543 labels = _defaultconflictlabels
539 labels = _defaultconflictlabels
544 if len(labels) < 3:
540 if len(labels) < 3:
545 labels.append(b'base')
541 labels.append(b'base')
546 return _merge(
542 return _merge(repo, fcd, fco, fca, labels, b'merge3')
547 repo, mynode, fcd, fco, fca, toolconf, backup, labels, b'merge3'
548 )
549
543
550
544
551 @internaltool(
545 @internaltool(
@@ -587,9 +581,7 b' def _imerge_diff(repo, mynode, fcd, fco,'
587 labels = _defaultconflictlabels
581 labels = _defaultconflictlabels
588 if len(labels) < 3:
582 if len(labels) < 3:
589 labels.append(b'base')
583 labels.append(b'base')
590 return _merge(
584 return _merge(repo, fcd, fco, fca, labels, b'mergediff')
591 repo, mynode, fcd, fco, fca, toolconf, backup, labels, b'mergediff'
592 )
593
585
594
586
595 @internaltool(b'merge-local', mergeonly, precheck=_mergecheck)
587 @internaltool(b'merge-local', mergeonly, precheck=_mergecheck)
@@ -597,9 +589,7 b' def _imergelocal(repo, mynode, fcd, fco,'
597 """
589 """
598 Like :merge, but resolve all conflicts non-interactively in favor
590 Like :merge, but resolve all conflicts non-interactively in favor
599 of the local `p1()` changes."""
591 of the local `p1()` changes."""
600 return _merge(
592 return _merge(repo, fcd, fco, fca, labels, b'local')
601 repo, mynode, fcd, fco, fca, toolconf, backup, labels, b'local'
602 )
603
593
604
594
605 @internaltool(b'merge-other', mergeonly, precheck=_mergecheck)
595 @internaltool(b'merge-other', mergeonly, precheck=_mergecheck)
@@ -607,9 +597,7 b' def _imergeother(repo, mynode, fcd, fco,'
607 """
597 """
608 Like :merge, but resolve all conflicts non-interactively in favor
598 Like :merge, but resolve all conflicts non-interactively in favor
609 of the other `p2()` changes."""
599 of the other `p2()` changes."""
610 return _merge(
600 return _merge(repo, fcd, fco, fca, labels, b'other')
611 repo, mynode, fcd, fco, fca, toolconf, backup, labels, b'other'
612 )
613
601
614
602
615 @internaltool(
603 @internaltool(
General Comments 0
You need to be logged in to leave comments. Login now