From patchwork Mon Aug 21 15:43:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D346: rebase: only change self.state when collapsing in _finishrebase From: phabricator X-Patchwork-Id: 23179 Message-Id: To: mercurial-devel@mercurial-scm.org Date: Mon, 21 Aug 2017 15:43:59 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG70354bd4f19b: rebase: only change self.state when collapsing in _finishrebase (authored by quark). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE https://phab.mercurial-scm.org/D346?vs=780&id=1125 REVISION DETAIL https://phab.mercurial-scm.org/D346 AFFECTED FILES hgext/rebase.py CHANGE DETAILS To: quark, #hg-reviewers Cc: mercurial-devel diff --git a/hgext/rebase.py b/hgext/rebase.py --- a/hgext/rebase.py +++ b/hgext/rebase.py @@ -461,12 +461,10 @@ editor=editor, keepbranches=self.keepbranchesf, date=self.date) - if newnode is None: - newrev = self.dest - else: + if newnode is not None: newrev = repo[newnode].rev() - for oldrev in self.state.iterkeys(): - self.state[oldrev] = newrev + for oldrev in self.state.iterkeys(): + self.state[oldrev] = newrev if 'qtip' in repo.tags(): updatemq(repo, self.state, self.skipped, **opts)