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

2017-12-13 Thread pulkit (Pulkit Goyal)
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
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


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

2017-12-12 Thread pulkit (Pulkit Goyal)
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel