changegroup: use tr.hookargs when calling changegroup hooks
authorPierre-Yves David <pierre-yves.david@fb.com>
Thu, 17 Apr 2014 17:46:26 -0400
changeset 21153 53ee02b54e53
parent 21152 30bce7e60140
child 21154 e110e2b79135
changegroup: use tr.hookargs when calling changegroup hooks So that other parties using the transaction can put information in our hook calls.
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,