Patchwork D273: changegroup: more **kwargs

login
register
mail settings
Submitter phabricator
Date Aug. 9, 2017, 2:18 p.m.
Message ID <9ad4c2423f9975f90265c9b18bbfbad8@localhost.localdomain>
Download mbox | patch
Permalink /patch/22784/
State Not Applicable
Headers show

Comments

phabricator - Aug. 9, 2017, 2:18 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG672ad4f3bb84: changegroup: more **kwargs (authored by durin42).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D273?vs=638&id=668

REVISION DETAIL
  https://phab.mercurial-scm.org/D273

AFFECTED FILES
  mercurial/changegroup.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py
--- a/mercurial/changegroup.py
+++ b/mercurial/changegroup.py
@@ -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]