mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
py3: handle keyword arguments correctly in hook.py
Differential Revision: https://phab.mercurial-scm.org/D1633
This commit is contained in:
parent
4a3c34a274
commit
30c3b22414
@ -91,7 +91,7 @@ def _pythonhook(ui, repo, htype, hname, funcname, args, throw):
|
|||||||
starttime = util.timer()
|
starttime = util.timer()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
r = obj(ui=ui, repo=repo, hooktype=htype, **args)
|
r = obj(ui=ui, repo=repo, hooktype=htype, **pycompat.strkwargs(args))
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
if isinstance(exc, error.Abort):
|
if isinstance(exc, error.Abort):
|
||||||
ui.warn(_('error: %s hook failed: %s\n') %
|
ui.warn(_('error: %s hook failed: %s\n') %
|
||||||
|
Loading…
Reference in New Issue
Block a user