##// END OF EJS Templates
changegroup: wrap some ** expansions in strkwargs
Augie Fackler -
r33634:38fc4572 default
parent child Browse files
Show More
@@ -266,7 +266,8 b' class cg1unpacker(object):'
266 # in this function.
266 # in this function.
267 srctype = tr.hookargs.setdefault('source', srctype)
267 srctype = tr.hookargs.setdefault('source', srctype)
268 url = tr.hookargs.setdefault('url', url)
268 url = tr.hookargs.setdefault('url', url)
269 repo.hook('prechangegroup', throw=True, **tr.hookargs)
269 repo.hook('prechangegroup',
270 throw=True, **pycompat.strkwargs(tr.hookargs))
270
271
271 # write changelog data to temp files so concurrent readers
272 # write changelog data to temp files so concurrent readers
272 # will not see an inconsistent view
273 # will not see an inconsistent view
@@ -353,7 +354,8 b' class cg1unpacker(object):'
353 hookargs = dict(tr.hookargs)
354 hookargs = dict(tr.hookargs)
354 hookargs['node'] = hex(cl.node(clstart))
355 hookargs['node'] = hex(cl.node(clstart))
355 hookargs['node_last'] = hex(cl.node(clend - 1))
356 hookargs['node_last'] = hex(cl.node(clend - 1))
356 repo.hook('pretxnchangegroup', throw=True, **hookargs)
357 repo.hook('pretxnchangegroup',
358 throw=True, **pycompat.strkwargs(hookargs))
357
359
358 added = [cl.node(r) for r in xrange(clstart, clend)]
360 added = [cl.node(r) for r in xrange(clstart, clend)]
359 phaseall = None
361 phaseall = None
General Comments 0
You need to be logged in to leave comments. Login now