##// END OF EJS Templates
changegroup: use tr.hookargs when calling pretxnchangegroup hooks...
Pierre-Yves David -
r21152:30bce7e6 default
parent child Browse files
Show More
@@ -675,9 +675,8 b' def addchangegroup(repo, source, srctype'
675 p = lambda: cl.writepending() and repo.root or ""
675 p = lambda: cl.writepending() and repo.root or ""
676 if 'node' not in tr.hookargs:
676 if 'node' not in tr.hookargs:
677 tr.hookargs['node'] = hex(cl.node(clstart))
677 tr.hookargs['node'] = hex(cl.node(clstart))
678 repo.hook('pretxnchangegroup', throw=True,
678 repo.hook('pretxnchangegroup', throw=True, source=srctype,
679 node=hex(cl.node(clstart)), source=srctype,
679 url=url, pending=p, **tr.hookargs)
680 url=url, pending=p)
681
680
682 added = [cl.node(r) for r in xrange(clstart, clend)]
681 added = [cl.node(r) for r in xrange(clstart, clend)]
683 publishing = repo.ui.configbool('phases', 'publish', True)
682 publishing = repo.ui.configbool('phases', 'publish', True)
General Comments 0
You need to be logged in to leave comments. Login now