D273: changegroup: more **kwargs

durin42 (Augie Fackler) phabricator at mercurial-scm.org
Wed Aug 9 10:18:16 EDT 2017


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

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]



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


More information about the Mercurial-devel mailing list