comparison hgext/rebase.py @ 36960:66651ec259ea

commands: don't check for merge.update() truthiness AFAICT ``stats`` is always a tuple in these cases. We don't need to check if the variable has a truthy value. Differential Revision: https://phab.mercurial-scm.org/D2691
author Gregory Szorc <gregory.szorc@gmail.com>
date Mon, 05 Mar 2018 00:18:07 -0500
parents 61600b024a70
children 795eb53f1d3e
comparison
equal deleted inserted replaced
36959:43815d87c6aa 36960:66651ec259ea
486 else: 486 else:
487 overrides = {('ui', 'forcemerge'): opts.get('tool', '')} 487 overrides = {('ui', 'forcemerge'): opts.get('tool', '')}
488 with ui.configoverride(overrides, 'rebase'): 488 with ui.configoverride(overrides, 'rebase'):
489 stats = rebasenode(repo, rev, p1, base, self.collapsef, 489 stats = rebasenode(repo, rev, p1, base, self.collapsef,
490 dest, wctx=self.wctx) 490 dest, wctx=self.wctx)
491 if stats and stats[3] > 0: 491 if stats[3] > 0:
492 if self.wctx.isinmemory(): 492 if self.wctx.isinmemory():
493 raise error.InMemoryMergeConflictsError() 493 raise error.InMemoryMergeConflictsError()
494 else: 494 else:
495 raise error.InterventionRequired( 495 raise error.InterventionRequired(
496 _('unresolved conflicts (see hg ' 496 _('unresolved conflicts (see hg '