# HG changeset patch # User Pierre-Yves David # Date 1413272600 25200 # Node ID d82e2223f1328fa0cc71bbdef24960f43c632ad3 # Parent 805c18b27f48a5cd49ebe78dd0b7e32447a3de09 prechangegroup: use hook argument from the transaction There can be useful data in there (eg: bundle2 related one) 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