changeset 21153:53ee02b54e53

changegroup: use tr.hookargs when calling changegroup hooks So that other parties using the transaction can put information in our hook calls.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 17 Apr 2014 17:46:26 -0400
parents 30bce7e60140
children e110e2b79135
files mercurial/changegroup.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,