py3: handle keyword arguments correctly in hgext/record.py
Differential Revision: https://phab.mercurial-scm.org/D1673
--- a/hgext/record.py Sun Dec 10 06:36:35 2017 +0530
+++ b/hgext/record.py Sun Dec 10 06:36:48 2017 +0530
@@ -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,7 +112,7 @@
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}
@@ -121,7 +121,7 @@
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)