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