Show More
@@ -509,10 +509,10 b' def _xmerge(repo, mynode, orig, fcd, fco' | |||
|
509 | 509 | 'for %s\n') % (tool, fcd.path())) |
|
510 | 510 | return False, 1, None |
|
511 | 511 | unused, unused, unused, back = files |
|
512 | a = _workingpath(repo, fcd) | |
|
513 |
b, |
|
|
512 | localpath = _workingpath(repo, fcd) | |
|
513 | basepath, otherpath = _maketempfiles(repo, fco, fca) | |
|
514 | 514 | try: |
|
515 | out = "" | |
|
515 | outpath = "" | |
|
516 | 516 | mylabel, otherlabel = labels[:2] |
|
517 | 517 | if len(labels) >= 3: |
|
518 | 518 | baselabel = labels[2] |
@@ -534,11 +534,11 b' def _xmerge(repo, mynode, orig, fcd, fco' | |||
|
534 | 534 | args = _toolstr(ui, tool, "args") |
|
535 | 535 | if "$output" in args: |
|
536 | 536 | # read input from backup, write to original |
|
537 | out = a | |
|
538 | a = repo.wvfs.join(back.path()) | |
|
539 |
replace = {'local': a, 'base': b, 'other': |
|
|
540 |
'labellocal': mylabel, |
|
|
541 | 'labelbase': baselabel} | |
|
537 | outpath = localpath | |
|
538 | localpath = repo.wvfs.join(back.path()) | |
|
539 | replace = {'local': localpath, 'base': basepath, 'other': otherpath, | |
|
540 | 'output': outpath, 'labellocal': mylabel, | |
|
541 | 'labelother': otherlabel, 'labelbase': baselabel} | |
|
542 | 542 | args = util.interpolate(br'\$', replace, args, |
|
543 | 543 | lambda s: util.shellquote(util.localpath(s))) |
|
544 | 544 | cmd = toolpath + ' ' + args |
@@ -550,8 +550,8 b' def _xmerge(repo, mynode, orig, fcd, fco' | |||
|
550 | 550 | repo.ui.debug('merge tool returned: %d\n' % r) |
|
551 | 551 | return True, r, False |
|
552 | 552 | finally: |
|
553 | util.unlink(b) | |
|
554 |
util.unlink( |
|
|
553 | util.unlink(basepath) | |
|
554 | util.unlink(otherpath) | |
|
555 | 555 | |
|
556 | 556 | def _formatconflictmarker(ctx, template, label, pad): |
|
557 | 557 | """Applies the given template to the ctx, prefixed by the label. |
General Comments 0
You need to be logged in to leave comments.
Login now