changegroup: use tr.hookargs when calling changegroup hooks
So that other parties using the transaction can put information in our hook
calls.
--- 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,