changegroup: more **kwargs
authorAugie Fackler <augie@google.com>
Mon, 24 Jul 2017 11:28:59 -0400
changeset 33712 672ad4f3bb84
parent 33711 373ca5103ba8
child 33713 888f24810ea2
changegroup: more **kwargs Differential Revision: https://phab.mercurial-scm.org/D273
mercurial/changegroup.py
--- 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]