# HG changeset patch # User Pierre-Yves David # Date 2014-04-17 21:59:28 # Node ID 2bfb0598206a986c08516fe461502d8832c2eeea # Parent 148e98e74e256709ce0a891176fc5be74e56da49 bundle2: call a hook after the transaction is closed We call a dedicated hook right after closing the transaction. This will let people react to the transaction with all the information in hand. This hook is experimental and will not survive in future versions. diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -733,6 +733,8 @@ def unbundle(repo, cg, heads, source, ur repo.hook('b2x-pretransactionclose', throw=True, source=source, url=url, pending=p, **tr.hookargs) tr.close() + repo.hook('b2x-transactionclose', source=source, url=url, + **tr.hookargs) else: r = changegroup.addchangegroup(repo, cg, source, url) finally: