D1633: py3: handle keyword arguments correctly in hook.py
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Dec 9 21:06:52 EST 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG056a9c8813aa: py3: handle keyword arguments correctly in hook.py (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D1633?vs=4300&id=4313
REVISION DETAIL
https://phab.mercurial-scm.org/D1633
AFFECTED FILES
mercurial/hook.py
CHANGE DETAILS
diff --git a/mercurial/hook.py b/mercurial/hook.py
--- a/mercurial/hook.py
+++ b/mercurial/hook.py
@@ -91,7 +91,7 @@
starttime = util.timer()
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:
if isinstance(exc, error.Abort):
ui.warn(_('error: %s hook failed: %s\n') %
To: pulkit, #hg-reviewers, durin42
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list