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 _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel