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