# HG changeset patch # User Pierre-Yves David # Date 2014-04-17 21:09:20 # Node ID 240d340fe152df9bf6b58dfaf34a136de256aa1f # Parent 0d05915b688db28f44fc289c7aabe5dd655e365e addchangegroup: register data in tr.hookargs We are registering data related to the process into the transaction hook data. This lets other parties using the same transaction get informed of the addchangegroup result. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -673,6 +673,8 @@ def addchangegroup(repo, source, srctype if changesets > 0: p = lambda: cl.writepending() and repo.root or "" + if 'node' not in tr.hookargs: + tr.hookargs['node'] = hex(cl.node(clstart)) repo.hook('pretxnchangegroup', throw=True, node=hex(cl.node(clstart)), source=srctype, url=url, pending=p)