Mercurial > public > mercurial-scm > hg
diff mercurial/changegroup.py @ 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 | 38fc45721334 |
children | bbdca7e460c0 |
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]