diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -490,7 +490,7 @@ 'rebase') stats = rebasenode(repo, rev, p1, base, self.state, self.collapsef, dest, wctx=self.wctx) - if stats and stats[3] > 0: + if stats[3] > 0: if self.wctx.isinmemory(): raise error.InMemoryMergeConflictsError() else: diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -2301,7 +2301,7 @@ finally: repo.ui.setconfig('ui', 'forcemerge', '', 'graft') # report any conflicts - if stats and stats[3] > 0: + if stats[3] > 0: # write out state for --continue nodelines = [repo[rev].hex() + "\n" for rev in revs[pos:]] repo.vfs.write('graftstate', ''.join(nodelines))