##// 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 266 # in this function.
267 267 srctype = tr.hookargs.setdefault('source', srctype)
268 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 272 # write changelog data to temp files so concurrent readers
272 273 # will not see an inconsistent view
@@ -353,7 +354,8 b' class cg1unpacker(object):'
353 354 hookargs = dict(tr.hookargs)
354 355 hookargs['node'] = hex(cl.node(clstart))
355 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 360 added = [cl.node(r) for r in xrange(clstart, clend)]
359 361 phaseall = None
General Comments 0
You need to be logged in to leave comments. Login now