Skip to content
Snippets Groups Projects
Commit 38fc4572 authored by Augie Fackler's avatar Augie Fackler
Browse files

changegroup: wrap some ** expansions in strkwargs

parent e5f8c7ba
Branches
Tags
No related merge requests found
......@@ -266,7 +266,8 @@
# in this function.
srctype = tr.hookargs.setdefault('source', srctype)
url = tr.hookargs.setdefault('url', url)
repo.hook('prechangegroup', throw=True, **tr.hookargs)
repo.hook('prechangegroup',
throw=True, **pycompat.strkwargs(tr.hookargs))
# write changelog data to temp files so concurrent readers
# will not see an inconsistent view
......@@ -353,7 +354,8 @@
hookargs = dict(tr.hookargs)
hookargs['node'] = hex(cl.node(clstart))
hookargs['node_last'] = hex(cl.node(clend - 1))
repo.hook('pretxnchangegroup', throw=True, **hookargs)
repo.hook('pretxnchangegroup',
throw=True, **pycompat.strkwargs(hookargs))
added = [cl.node(r) for r in xrange(clstart, clend)]
phaseall = None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment