# HG changeset patch # User Pierre-Yves David # Date 2014-04-17 21:15:02 # Node ID 30bce7e601409e1dae450072dc2c3cb2aa700fad # Parent 240d340fe152df9bf6b58dfaf34a136de256aa1f changegroup: use tr.hookargs when calling pretxnchangegroup hooks So that other parties using the transaction can put information in our hook calls. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -675,9 +675,8 @@ def addchangegroup(repo, source, srctype p = lambda: cl.writepending() and repo.root or "" if 'node' not in tr.hookargs: tr.hookargs['node'] = hex(cl.node(clstart)) - repo.hook('pretxnchangegroup', throw=True, - node=hex(cl.node(clstart)), source=srctype, - url=url, pending=p) + repo.hook('pretxnchangegroup', throw=True, source=srctype, + url=url, pending=p, **tr.hookargs) added = [cl.node(r) for r in xrange(clstart, clend)] publishing = repo.ui.configbool('phases', 'publish', True)