D7646: rebase: inline single-use variables passed to _definedestmap()
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Fri Dec 13 07:56:25 UTC 2019
martinvonz created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D7646
AFFECTED FILES
hgext/rebase.py
CHANGE DETAILS
diff --git a/hgext/rebase.py b/hgext/rebase.py
--- a/hgext/rebase.py
+++ b/hgext/rebase.py
@@ -1160,14 +1160,6 @@
):
assert action != b'stop'
with repo.wlock(), repo.lock():
- # Validate input and define rebasing points
- destf = opts.get(b'dest', None)
- srcf = opts.get(b'source', None)
- basef = opts.get(b'base', None)
- revf = opts.get(b'rev', [])
- # search default destination in this space
- # used in the 'hg pull --rebase' case, see issue 5214.
- destspace = opts.get(b'_destspace')
if opts.get(b'interactive'):
try:
if extensions.find(b'histedit'):
@@ -1204,14 +1196,17 @@
if retcode is not None:
return retcode
else:
+ # search default destination in this space
+ # used in the 'hg pull --rebase' case, see issue 5214.
+ destspace = opts.get(b'_destspace')
destmap = _definedestmap(
ui,
repo,
inmemory,
- destf,
- srcf,
- basef,
- revf,
+ opts.get(b'dest', None),
+ opts.get(b'source', None),
+ opts.get(b'base', None),
+ opts.get(b'rev', []),
destspace=destspace,
)
retcode = rbsrt._preparenewrebase(destmap)
To: martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list