# HG changeset patch # User Pierre-Yves David # Date 2014-04-17 21:46:26 # Node ID 53ee02b54e530d657406dca56244b33ae77c39d7 # Parent 30bce7e601409e1dae450072dc2c3cb2aa700fad changegroup: use tr.hookargs when calling changegroup 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 @@ -718,8 +718,8 @@ def addchangegroup(repo, source, srctype # forcefully update the on-disk branch cache repo.ui.debug("updating the branch cache\n") - repo.hook("changegroup", node=hex(cl.node(clstart)), - source=srctype, url=url) + repo.hook("changegroup", source=srctype, url=url, + **tr.hookargs) for n in added: repo.hook("incoming", node=hex(n), source=srctype,