Mercurial > public > mercurial-scm > hg-stable
diff mercurial/help/config.txt @ 24282:db8679812f84
hook: add a generic hook after transaction has been closed
We are adding generic hooking for all transactions. We may have useful
information about what happened during the transaction, user of the transaction
should have filled the 'hookargs' dictionnary of the transaction. This hook is
simple because it has no power to rollback the transaction.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Mon, 09 Mar 2015 22:36:56 -0700 |
parents | e9ede9b4c2f8 |
children | ff14b26fe5f4 |
line wrap: on
line diff
--- a/mercurial/help/config.txt Wed Dec 10 18:19:49 2014 -0800 +++ b/mercurial/help/config.txt Mon Mar 09 22:36:56 2015 -0700 @@ -813,6 +813,16 @@ transaction will be in ``$HG_TXNNAME``. A non-zero status will prevent the transaction from being opened. +``txnclose`` + Run after any repository transaction has been commited. At this + point, the transaction can no longer be rolled back. The hook will run + after the lock is released. The reason for the transaction will + be in ``$HG_TXNNAME``. The rest of the available data will vary + according the event that happened during the transaction. New changesets + will add ``$HG_NODE`` (id of the first added changeset), ``$HG_URL`` + and ``$HG_SOURCE`` variables, bookmarks and phases changes will set + ``HG_BOOKMARK_MOVED`` and ``HG_PHASES_MOVED`` to ``1``, etc. + ``pretxnchangegroup`` Run after a changegroup has been added via push, pull or unbundle, but before the transaction has been committed. Changegroup is