D2410: py3: use pycompat.byteskwargs() to fix keyword arguments handling
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Feb 24 09:40:40 UTC 2018
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
I missed these when I fixed keyword arguments handling in the whole file.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2410
AFFECTED FILES
hgext/mq.py
CHANGE DETAILS
diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1194,6 +1194,7 @@
"""options:
msg: a string or a no-argument function returning a string
"""
+ opts = pycompat.byteskwargs(opts)
msg = opts.get('msg')
edit = opts.get('edit')
editform = opts.get('editform', 'mq.qnew')
@@ -1633,6 +1634,7 @@
self.printdiff(repo, diffopts, node1, node2, files=pats, opts=opts)
def refresh(self, repo, pats=None, **opts):
+ opts = pycompat.byteskwargs(opts)
if not self.applied:
self.ui.write(_("no patches applied\n"))
return 1
To: pulkit, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list