diff -r 805c18b27f48 -r d82e2223f132 mercurial/changegroup.py --- a/mercurial/changegroup.py Tue Oct 14 00:09:25 2014 -0700 +++ b/mercurial/changegroup.py Tue Oct 14 00:43:20 2014 -0700 @@ -603,7 +603,8 @@ tr = repo.transaction("\n".join([srctype, util.hidepassword(url)])) try: - repo.hook('prechangegroup', throw=True, source=srctype, url=url) + repo.hook('prechangegroup', throw=True, source=srctype, url=url, + **tr.hookargs) trp = weakref.proxy(tr) # pull off the changeset group