# HG changeset patch # User Pierre-Yves David # Date 1397771186 14400 # 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 -r 30bce7e60140 -r 53ee02b54e53 mercurial/changegroup.py --- a/mercurial/changegroup.py Thu Apr 17 17:15:02 2014 -0400 +++ b/mercurial/changegroup.py Thu Apr 17 17:46:26 2014 -0400 @@ -718,8 +718,8 @@ # 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,