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