Show More
@@ -318,7 +318,7 b' def _premerge(repo, fcd, fco, fca, toolc' | |||
|
318 | 318 | tool, toolpath, binary, symlink = toolconf |
|
319 | 319 | if symlink or fcd.isabsent() or fco.isabsent(): |
|
320 | 320 | return 1 |
|
321 |
|
|
|
321 | unused, unused, unused, back = files | |
|
322 | 322 | |
|
323 | 323 | ui = repo.ui |
|
324 | 324 | |
@@ -347,7 +347,8 b' def _premerge(repo, fcd, fco, fca, toolc' | |||
|
347 | 347 | ui.debug(" premerge successful\n") |
|
348 | 348 | return 0 |
|
349 | 349 | if premerge not in validkeep: |
|
350 |
|
|
|
350 | # restore from backup and try again | |
|
351 | util.copyfile(back, repo.wjoin(fcd.path())) | |
|
351 | 352 | return 1 # continue merging |
|
352 | 353 | |
|
353 | 354 | def _mergecheck(repo, mynode, orig, fcd, fco, fca, toolconf): |
@@ -368,8 +369,6 b' def _merge(repo, mynode, orig, fcd, fco,' | |||
|
368 | 369 | files. It will fail if there are any conflicts and leave markers in |
|
369 | 370 | the partially merged file. Markers will have two sections, one for each side |
|
370 | 371 | of merge, unless mode equals 'union' which suppresses the markers.""" |
|
371 | a, b, c, back = files | |
|
372 | ||
|
373 | 372 | ui = repo.ui |
|
374 | 373 | |
|
375 | 374 | r = simplemerge.simplemerge(ui, fcd, fca, fco, |
@@ -424,7 +423,6 b' def _imergeauto(repo, mynode, orig, fcd,' | |||
|
424 | 423 | """ |
|
425 | 424 | assert localorother is not None |
|
426 | 425 | tool, toolpath, binary, symlink = toolconf |
|
427 | a, b, c, back = files | |
|
428 | 426 | r = simplemerge.simplemerge(repo.ui, fcd, fca, fco, |
|
429 | 427 | label=labels, localorother=localorother, |
|
430 | 428 | repo=repo) |
@@ -470,7 +468,7 b' def _idump(repo, mynode, orig, fcd, fco,' | |||
|
470 | 468 | This implies permerge. Therefore, files aren't dumped, if premerge |
|
471 | 469 | runs successfully. Use :forcedump to forcibly write files out. |
|
472 | 470 | """ |
|
473 |
a, |
|
|
471 | a, unused, unused, unused = files | |
|
474 | 472 | |
|
475 | 473 | fd = fcd.path() |
|
476 | 474 | |
@@ -720,7 +718,7 b' def _filemerge(premerge, repo, mynode, o' | |||
|
720 | 718 | |
|
721 | 719 | def _check(r, ui, tool, fcd, files): |
|
722 | 720 | fd = fcd.path() |
|
723 |
a, |
|
|
721 | a, unused, unused, back = files | |
|
724 | 722 | |
|
725 | 723 | if not r and (_toolbool(ui, tool, "checkconflicts") or |
|
726 | 724 | 'conflicts' in _toollist(ui, tool, "check")): |
General Comments 0
You need to be logged in to leave comments.
Login now