Patchwork D2410: py3: use pycompat.byteskwargs() to fix keyword arguments handling

login
register
mail settings
Submitter phabricator
Date Feb. 24, 2018, 10:43 a.m.
Message ID <b8b9afc9f3d196deb95602c6bb51c3da@localhost.localdomain>
Download mbox | patch
Permalink /patch/28309/
State Not Applicable
Headers show

Comments

phabricator - Feb. 24, 2018, 10:43 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGdbf34d0ef9f6: py3: use pycompat.byteskwargs() to fix keyword arguments handling (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2410?vs=6029&id=6034

REVISION DETAIL
  https://phab.mercurial-scm.org/D2410

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

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