Patchwork D3581: py3: fix kwargs handling in qgurad in hgext/mq.py

login
register
mail settings
Submitter phabricator
Date May 19, 2018, 2:37 a.m.
Message ID <93223ed173eb9db4b9f3e985dc897783@localhost.localdomain>
Download mbox | patch
Permalink /patch/31670/
State Not Applicable
Headers show

Comments

phabricator - May 19, 2018, 2:37 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG88c2d0e639b1: py3: fix kwargs handling in qgurad in hgext/mq.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3581?vs=8742&id=8753

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

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -2872,7 +2872,7 @@ 
     patch = None
     args = list(args)
     if opts.get(r'list'):
-        if args or opts.get('none'):
+        if args or opts.get(r'none'):
             raise error.Abort(_('cannot mix -l/--list with options or '
                                'arguments'))
         for i in xrange(len(q.series)):
@@ -2886,7 +2886,7 @@ 
         patch = args.pop(0)
     if patch is None:
         raise error.Abort(_('no patch to work with'))
-    if args or opts.get('none'):
+    if args or opts.get(r'none'):
         idx = q.findseries(patch)
         if idx is None:
             raise error.Abort(_('no patch named %s') % patch)