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

pulkit (Pulkit Goyal) phabricator at mercurial-scm.org
Wed Dec 13 08:05:31 EST 2017


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

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)
 



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


More information about the Mercurial-devel mailing list