##// END OF EJS Templates
py3: handle keyword arguments in hgext/histedit.py...
Pulkit Goyal -
r35000:c4b769bc default
parent child Browse files
Show More
@@ -203,6 +203,7 b' from mercurial import ('
203 mergeutil,
203 mergeutil,
204 node,
204 node,
205 obsolete,
205 obsolete,
206 pycompat,
206 registrar,
207 registrar,
207 repair,
208 repair,
208 scmutil,
209 scmutil,
@@ -541,9 +542,9 b' def commitfuncfor(repo, src):'
541 def commitfunc(**kwargs):
542 def commitfunc(**kwargs):
542 overrides = {('phases', 'new-commit'): phasemin}
543 overrides = {('phases', 'new-commit'): phasemin}
543 with repo.ui.configoverride(overrides, 'histedit'):
544 with repo.ui.configoverride(overrides, 'histedit'):
544 extra = kwargs.get('extra', {}).copy()
545 extra = kwargs.get(r'extra', {}).copy()
545 extra['histedit_source'] = src.hex()
546 extra['histedit_source'] = src.hex()
546 kwargs['extra'] = extra
547 kwargs[r'extra'] = extra
547 return repo.commit(**kwargs)
548 return repo.commit(**kwargs)
548 return commitfunc
549 return commitfunc
549
550
@@ -1093,6 +1094,7 b' def _validateargs(ui, repo, state, freea'
1093 _('histedit requires exactly one ancestor revision'))
1094 _('histedit requires exactly one ancestor revision'))
1094
1095
1095 def _histedit(ui, repo, state, *freeargs, **opts):
1096 def _histedit(ui, repo, state, *freeargs, **opts):
1097 opts = pycompat.byteskwargs(opts)
1096 goal = _getgoal(opts)
1098 goal = _getgoal(opts)
1097 revs = opts.get('rev', [])
1099 revs = opts.get('rev', [])
1098 rules = opts.get('commands', '')
1100 rules = opts.get('commands', '')
General Comments 0
You need to be logged in to leave comments. Login now