##// END OF EJS Templates
py3: handle keyword arguments in hgext/commitextras.py...
Pulkit Goyal -
r34976:901a18b0 default
parent child Browse files
Show More
@@ -46,7 +46,7 b' def _commit(orig, ui, repo, *pats, **opt'
46 origcommit = repo.commit
46 origcommit = repo.commit
47 try:
47 try:
48 def _wrappedcommit(*innerpats, **inneropts):
48 def _wrappedcommit(*innerpats, **inneropts):
49 extras = opts.get('extra')
49 extras = opts.get(r'extra')
50 if extras:
50 if extras:
51 for raw in extras:
51 for raw in extras:
52 if '=' not in raw:
52 if '=' not in raw:
@@ -65,7 +65,7 b' def _commit(orig, ui, repo, *pats, **opt'
65 msg = _("key '%s' is used internally, can't be set "
65 msg = _("key '%s' is used internally, can't be set "
66 "manually")
66 "manually")
67 raise error.Abort(msg % k)
67 raise error.Abort(msg % k)
68 inneropts['extra'][k] = v
68 inneropts[r'extra'][k] = v
69 return origcommit(*innerpats, **inneropts)
69 return origcommit(*innerpats, **inneropts)
70
70
71 # This __dict__ logic is needed because the normal
71 # This __dict__ logic is needed because the normal
General Comments 0
You need to be logged in to leave comments. Login now