##// END OF EJS Templates
py3: handle keyword arguments correctly in hgext/record.py...
Pulkit Goyal -
r35404:154e822b default
parent child Browse files
Show More
@@ -68,13 +68,13 b' def record(ui, repo, *pats, **opts):'
68 raise error.Abort(_('running non-interactively, use %s instead') %
68 raise error.Abort(_('running non-interactively, use %s instead') %
69 'commit')
69 'commit')
70
70
71 opts["interactive"] = True
71 opts[r"interactive"] = True
72 overrides = {('experimental', 'crecord'): False}
72 overrides = {('experimental', 'crecord'): False}
73 with ui.configoverride(overrides, 'record'):
73 with ui.configoverride(overrides, 'record'):
74 return commands.commit(ui, repo, *pats, **opts)
74 return commands.commit(ui, repo, *pats, **opts)
75
75
76 def qrefresh(origfn, ui, repo, *pats, **opts):
76 def qrefresh(origfn, ui, repo, *pats, **opts):
77 if not opts['interactive']:
77 if not opts[r'interactive']:
78 return origfn(ui, repo, *pats, **opts)
78 return origfn(ui, repo, *pats, **opts)
79
79
80 mq = extensions.find('mq')
80 mq = extensions.find('mq')
@@ -112,7 +112,7 b' def _qrecord(cmdsuggest, ui, repo, patch'
112 repo.mq.checkpatchname(patch)
112 repo.mq.checkpatchname(patch)
113
113
114 def committomq(ui, repo, *pats, **opts):
114 def committomq(ui, repo, *pats, **opts):
115 opts['checkname'] = False
115 opts[r'checkname'] = False
116 mq.new(ui, repo, patch, *pats, **opts)
116 mq.new(ui, repo, patch, *pats, **opts)
117
117
118 overrides = {('experimental', 'crecord'): False}
118 overrides = {('experimental', 'crecord'): False}
@@ -121,7 +121,7 b' def _qrecord(cmdsuggest, ui, repo, patch'
121 cmdutil.recordfilter, *pats, **opts)
121 cmdutil.recordfilter, *pats, **opts)
122
122
123 def qnew(origfn, ui, repo, patch, *args, **opts):
123 def qnew(origfn, ui, repo, patch, *args, **opts):
124 if opts['interactive']:
124 if opts[r'interactive']:
125 return _qrecord(None, ui, repo, patch, *args, **opts)
125 return _qrecord(None, ui, repo, patch, *args, **opts)
126 return origfn(ui, repo, patch, *args, **opts)
126 return origfn(ui, repo, patch, *args, **opts)
127
127
General Comments 0
You need to be logged in to leave comments. Login now