Patchwork D1673: py3: handle keyword arguments correctly in hgext/record.py

login
register
mail settings
Submitter phabricator
Date Dec. 13, 2017, 1:05 p.m.
Message ID <28d4e5d642d2a4b9318e86545a403567@localhost.localdomain>
Download mbox | patch
Permalink /patch/26267/
State Not Applicable
Headers show

Comments

phabricator - Dec. 13, 2017, 1:05 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG57cfc8f6d83e: py3: handle keyword arguments correctly in hgext/record.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1673?vs=4398&id=4421

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

AFFECTED FILES
  hgext/record.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/record.py b/hgext/record.py
--- a/hgext/record.py
+++ b/hgext/record.py
@@ -68,13 +68,13 @@ 
         raise error.Abort(_('running non-interactively, use %s instead') %
                          'commit')
 
-    opts["interactive"] = True
+    opts[r"interactive"] = True
     overrides = {('experimental', 'crecord'): False}
     with ui.configoverride(overrides, 'record'):
         return commands.commit(ui, repo, *pats, **opts)
 
 def qrefresh(origfn, ui, repo, *pats, **opts):
-    if not opts['interactive']:
+    if not opts[r'interactive']:
         return origfn(ui, repo, *pats, **opts)
 
     mq = extensions.find('mq')
@@ -112,16 +112,16 @@ 
     repo.mq.checkpatchname(patch)
 
     def committomq(ui, repo, *pats, **opts):
-        opts['checkname'] = False
+        opts[r'checkname'] = False
         mq.new(ui, repo, patch, *pats, **opts)
 
     overrides = {('experimental', 'crecord'): False}
     with ui.configoverride(overrides, 'record'):
         cmdutil.dorecord(ui, repo, committomq, cmdsuggest, False,
                          cmdutil.recordfilter, *pats, **opts)
 
 def qnew(origfn, ui, repo, patch, *args, **opts):
-    if opts['interactive']:
+    if opts[r'interactive']:
         return _qrecord(None, ui, repo, patch, *args, **opts)
     return origfn(ui, repo, patch, *args, **opts)