Patchwork D1633: py3: handle keyword arguments correctly in hook.py

login
register
mail settings
Submitter phabricator
Date Dec. 10, 2017, 2:06 a.m.
Message ID <eccc5c5663d544280830f0cfe246d7c0@localhost.localdomain>
Download mbox | patch
Permalink /patch/26167/
State Not Applicable
Headers show

Comments

phabricator - Dec. 10, 2017, 2:06 a.m.
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




To: pulkit, #hg-reviewers, durin42
Cc: mercurial-devel

Patch

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') %