Show More
@@ -247,7 +247,7 b' def _merge(repo, mynode, orig, fcd, fco,' | |||||
247 | files. It will fail if there are any conflicts and leave markers in |
|
247 | files. It will fail if there are any conflicts and leave markers in | |
248 | the partially merged file. Markers will have two sections, one for each side |
|
248 | the partially merged file. Markers will have two sections, one for each side | |
249 | of merge, unless mode equals 'union' which suppresses the markers.""" |
|
249 | of merge, unless mode equals 'union' which suppresses the markers.""" | |
250 | r = _premerge(repo, toolconf, files, labels=labels) |
|
250 | r = 1 | |
251 | if r: |
|
251 | if r: | |
252 | a, b, c, back = files |
|
252 | a, b, c, back = files | |
253 |
|
253 | |||
@@ -349,7 +349,7 b' def _idump(repo, mynode, orig, fcd, fco,' | |||||
349 | ``a.txt``, these files will accordingly be named ``a.txt.local``, |
|
349 | ``a.txt``, these files will accordingly be named ``a.txt.local``, | |
350 | ``a.txt.other`` and ``a.txt.base`` and they will be placed in the |
|
350 | ``a.txt.other`` and ``a.txt.base`` and they will be placed in the | |
351 | same directory as ``a.txt``.""" |
|
351 | same directory as ``a.txt``.""" | |
352 | r = _premerge(repo, toolconf, files, labels=labels) |
|
352 | r = 1 | |
353 | if r: |
|
353 | if r: | |
354 | a, b, c, back = files |
|
354 | a, b, c, back = files | |
355 |
|
355 | |||
@@ -361,7 +361,7 b' def _idump(repo, mynode, orig, fcd, fco,' | |||||
361 | return False, r |
|
361 | return False, r | |
362 |
|
362 | |||
363 | def _xmerge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels=None): |
|
363 | def _xmerge(repo, mynode, orig, fcd, fco, fca, toolconf, files, labels=None): | |
364 | r = _premerge(repo, toolconf, files, labels=labels) |
|
364 | r = 1 | |
365 | if r: |
|
365 | if r: | |
366 | tool, toolpath, binary, symlink = toolconf |
|
366 | tool, toolpath, binary, symlink = toolconf | |
367 | a, b, c, back = files |
|
367 | a, b, c, back = files | |
@@ -519,8 +519,15 b' def filemerge(repo, mynode, orig, fcd, f' | |||||
519 | if markerstyle != 'basic': |
|
519 | if markerstyle != 'basic': | |
520 | labels = _formatlabels(repo, fcd, fco, fca, labels) |
|
520 | labels = _formatlabels(repo, fcd, fco, fca, labels) | |
521 |
|
521 | |||
522 | needcheck, r = func(repo, mynode, orig, fcd, fco, fca, toolconf, files, |
|
522 | r = 1 | |
523 | labels=labels) |
|
523 | if mergetype == fullmerge: | |
|
524 | r = _premerge(repo, toolconf, files, labels=labels) | |||
|
525 | ||||
|
526 | if not r: # premerge successfully merged the file | |||
|
527 | needcheck = False | |||
|
528 | else: | |||
|
529 | needcheck, r = func(repo, mynode, orig, fcd, fco, fca, toolconf, | |||
|
530 | files, labels=labels) | |||
524 |
|
531 | |||
525 | if not needcheck: |
|
532 | if not needcheck: | |
526 | if r: |
|
533 | if r: |
General Comments 0
You need to be logged in to leave comments.
Login now