Show More
@@ -415,7 +415,7 b' class mergestate(object):' | |||
|
415 | 415 | def _resolve(self, preresolve, dfile, wctx, labels=None): |
|
416 | 416 | """rerun merge process for file path `dfile`""" |
|
417 | 417 | if self[dfile] in 'rd': |
|
418 |
return True, 0 |
|
|
418 | return True, 0 | |
|
419 | 419 | stateentry = self._state[dfile] |
|
420 | 420 | state, hash, lfile, afile, anode, ofile, onode, flags = stateentry |
|
421 | 421 | octx = self._repo[self._other] |
@@ -455,8 +455,8 b' class mergestate(object):' | |||
|
455 | 455 | elif not r: |
|
456 | 456 | self.mark(dfile, 'r') |
|
457 | 457 | |
|
458 | action = None | |
|
459 | 458 | if complete: |
|
459 | action = None | |
|
460 | 460 | if deleted: |
|
461 | 461 | if not fcd.isabsent(): |
|
462 | 462 | # cd: remote picked (or otherwise deleted) |
@@ -470,7 +470,7 b' class mergestate(object):' | |||
|
470 | 470 | # else: regular merges (no action necessary) |
|
471 | 471 | self._results[dfile] = r, action |
|
472 | 472 | |
|
473 |
return complete, r |
|
|
473 | return complete, r | |
|
474 | 474 | |
|
475 | 475 | def _filectxorabsent(self, hexnode, ctx, f): |
|
476 | 476 | if hexnode == nullhex: |
@@ -482,15 +482,13 b' class mergestate(object):' | |||
|
482 | 482 | """run premerge process for dfile |
|
483 | 483 | |
|
484 | 484 | Returns whether the merge is complete, and the exit code.""" |
|
485 |
|
|
|
486 | return complete, r | |
|
485 | return self._resolve(True, dfile, wctx, labels=labels) | |
|
487 | 486 | |
|
488 | 487 | def resolve(self, dfile, wctx, labels=None): |
|
489 | 488 | """run merge process (assuming premerge was run) for dfile |
|
490 | 489 | |
|
491 | 490 | Returns the exit code of the merge.""" |
|
492 |
|
|
|
493 | return r | |
|
491 | return self._resolve(False, dfile, wctx, labels=labels)[1] | |
|
494 | 492 | |
|
495 | 493 | def _checkunknownfile(repo, wctx, mctx, f, f2=None): |
|
496 | 494 | if f2 is None: |
General Comments 0
You need to be logged in to leave comments.
Login now