[Request] [+ ] D10860: dog-raft: keep opts dict str-keyed a bit longer
martinvonz (Martin von Zweigbergk)
phabricator at mercurial-scm.org
Thu Jun 10 23:22:23 UTC 2021
martinvonz created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D10860
AFFECTED FILES
mercurial/commands.py
CHANGE DETAILS
diff --git a/mercurial/commands.py b/mercurial/commands.py
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3071,8 +3071,7 @@
def _dograft(ui, repo, *revs, **opts):
- opts = pycompat.byteskwargs(opts)
- if revs and opts.get(b'rev'):
+ if revs and opts.get('rev'):
ui.warn(
_(
b'warning: inconsistent use of --rev might give unexpected '
@@ -3081,12 +3080,13 @@
)
revs = list(revs)
- revs.extend(opts.get(b'rev'))
+ revs.extend(opts.get('rev'))
# a dict of data to be stored in state file
statedata = {}
# list of new nodes created by ongoing graft
statedata[b'newnodes'] = []
+ opts = pycompat.byteskwargs(opts)
cmdutil.resolvecommitoptions(ui, opts)
editor = cmdutil.getcommiteditor(
To: martinvonz, #hg-reviewers
Cc: mercurial-patches, mercurial-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210610/abdca32b/attachment.html>
More information about the Mercurial-patches
mailing list