Show More
@@ -118,14 +118,11 b' try:' | |||||
118 | _verifytext(other_input, ui, quiet=quiet, allow_binary=allow_binary) |
|
118 | _verifytext(other_input, ui, quiet=quiet, allow_binary=allow_binary) | |
119 |
|
119 | |||
120 | merged_text, conflicts = simplemerge.simplemerge( |
|
120 | merged_text, conflicts = simplemerge.simplemerge( | |
121 | ui, |
|
|||
122 | local_input, |
|
121 | local_input, | |
123 | base_input, |
|
122 | base_input, | |
124 | other_input, |
|
123 | other_input, | |
125 | mode, |
|
124 | mode, | |
126 | quiet=True, |
|
|||
127 | allow_binary=allow_binary, |
|
125 | allow_binary=allow_binary, | |
128 | print_result=opts.get(b'print'), |
|
|||
129 | ) |
|
126 | ) | |
130 | if opts.get(b'print'): |
|
127 | if opts.get(b'print'): | |
131 | ui.fout.write(merged_text) |
|
128 | ui.fout.write(merged_text) |
@@ -443,7 +443,7 b' def _premerge(repo, local, other, base, ' | |||||
443 | ): |
|
443 | ): | |
444 | return 1 # continue merging |
|
444 | return 1 # continue merging | |
445 | merged_text, conflicts = simplemerge.simplemerge( |
|
445 | merged_text, conflicts = simplemerge.simplemerge( | |
446 |
|
|
446 | local, base, other, mode=mode | |
447 | ) |
|
447 | ) | |
448 | if not conflicts or premerge in validkeep: |
|
448 | if not conflicts or premerge in validkeep: | |
449 | # fcd.flags() already has the merged flags (done in |
|
449 | # fcd.flags() already has the merged flags (done in | |
@@ -492,7 +492,7 b' def _merge(repo, local, other, base, mod' | |||||
492 | return True, True, False |
|
492 | return True, True, False | |
493 | else: |
|
493 | else: | |
494 | merged_text, conflicts = simplemerge.simplemerge( |
|
494 | merged_text, conflicts = simplemerge.simplemerge( | |
495 |
|
|
495 | local, base, other, mode=mode | |
496 | ) |
|
496 | ) | |
497 | # fcd.flags() already has the merged flags (done in |
|
497 | # fcd.flags() already has the merged flags (done in | |
498 | # mergestate.resolve()) |
|
498 | # mergestate.resolve()) |
@@ -493,14 +493,11 b' class MergeInput(object):' | |||||
493 |
|
493 | |||
494 |
|
494 | |||
495 | def simplemerge( |
|
495 | def simplemerge( | |
496 | ui, |
|
|||
497 | local, |
|
496 | local, | |
498 | base, |
|
497 | base, | |
499 | other, |
|
498 | other, | |
500 | mode=b'merge', |
|
499 | mode=b'merge', | |
501 | quiet=False, |
|
|||
502 | allow_binary=False, |
|
500 | allow_binary=False, | |
503 | print_result=False, |
|
|||
504 | ): |
|
501 | ): | |
505 | """Performs the simplemerge algorithm. |
|
502 | """Performs the simplemerge algorithm. | |
506 |
|
503 |
General Comments 0
You need to be logged in to leave comments.
Login now