changeset 33712:672ad4f3bb84

changegroup: more **kwargs Differential Revision: https://phab.mercurial-scm.org/D273
author Augie Fackler <augie@google.com>
date Mon, 24 Jul 2017 11:28:59 -0400
parents 373ca5103ba8
children 888f24810ea2
files mercurial/changegroup.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/changegroup.py	Mon Jul 24 11:16:32 2017 -0400
+++ b/mercurial/changegroup.py	Mon Jul 24 11:28:59 2017 -0400
@@ -390,13 +390,13 @@
                     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]