Show More
@@ -467,10 +467,12 b' def filemerge(repo, mynode, orig, fcd, f' | |||||
467 | func = internals[tool] |
|
467 | func = internals[tool] | |
468 | trymerge = func.trymerge |
|
468 | trymerge = func.trymerge | |
469 | onfailure = func.onfailure |
|
469 | onfailure = func.onfailure | |
|
470 | precheck = func.precheck | |||
470 | else: |
|
471 | else: | |
471 | func = _xmerge |
|
472 | func = _xmerge | |
472 | trymerge = True |
|
473 | trymerge = True | |
473 | onfailure = _("merging %s failed!\n") |
|
474 | onfailure = _("merging %s failed!\n") | |
|
475 | precheck = None | |||
474 |
|
476 | |||
475 | toolconf = tool, toolpath, binary, symlink |
|
477 | toolconf = tool, toolpath, binary, symlink | |
476 |
|
478 | |||
@@ -490,14 +492,22 b' def filemerge(repo, mynode, orig, fcd, f' | |||||
490 |
|
492 | |||
491 | ui.debug("my %s other %s ancestor %s\n" % (fcd, fco, fca)) |
|
493 | ui.debug("my %s other %s ancestor %s\n" % (fcd, fco, fca)) | |
492 |
|
494 | |||
493 | markerstyle = ui.config('ui', 'mergemarkers', 'basic') |
|
495 | r = 0 | |
494 | if not labels: |
|
496 | if precheck and not precheck(repo, mynode, orig, fcd, fco, fca, | |
495 | labels = _defaultconflictlabels |
|
497 | toolconf): | |
496 | if markerstyle != 'basic': |
|
498 | r = 1 | |
497 | labels = _formatlabels(repo, fcd, fco, fca, labels) |
|
499 | needcheck = False | |
498 |
|
500 | |||
499 | needcheck, r = func(repo, mynode, orig, fcd, fco, fca, toolconf, |
|
501 | if not r: # precheck passed | |
500 | (a, b, c, back), labels=labels) |
|
502 | markerstyle = ui.config('ui', 'mergemarkers', 'basic') | |
|
503 | if not labels: | |||
|
504 | labels = _defaultconflictlabels | |||
|
505 | if markerstyle != 'basic': | |||
|
506 | labels = _formatlabels(repo, fcd, fco, fca, labels) | |||
|
507 | ||||
|
508 | needcheck, r = func(repo, mynode, orig, fcd, fco, fca, toolconf, | |||
|
509 | (a, b, c, back), labels=labels) | |||
|
510 | ||||
501 | if not needcheck: |
|
511 | if not needcheck: | |
502 | if r: |
|
512 | if r: | |
503 | if onfailure: |
|
513 | if onfailure: |
General Comments 0
You need to be logged in to leave comments.
Login now