# HG changeset patch # User Augie Fackler # Date 2017-07-24 15:28:59 # Node ID 672ad4f3bb84cb8163744b463de7b705b8c2688f # Parent 373ca5103ba860d7ab7d9ac732f1f50660f5a45b changegroup: more **kwargs Differential Revision: https://phab.mercurial-scm.org/D273 diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -390,13 +390,13 @@ class cg1unpacker(object): if clstart >= len(repo): return - repo.hook("changegroup", **hookargs) + repo.hook("changegroup", **pycompat.strkwargs(hookargs)) for n in added: args = hookargs.copy() args['node'] = hex(n) del args['node_last'] - repo.hook("incoming", **args) + repo.hook("incoming", **pycompat.strkwargs(args)) newheads = [h for h in repo.heads() if h not in oldheads]