mercurial/help/config.txt
changeset 24282 db8679812f84
parent 24281 e9ede9b4c2f8
child 24284 ff14b26fe5f4
equal deleted inserted replaced
24281:e9ede9b4c2f8 24282:db8679812f84
   811 ``pretxnopen``
   811 ``pretxnopen``
   812   Run before any new repository transaction is open. The reason for the
   812   Run before any new repository transaction is open. The reason for the
   813   transaction will be in ``$HG_TXNNAME``. A non-zero status will
   813   transaction will be in ``$HG_TXNNAME``. A non-zero status will
   814   prevent the transaction from being opened.
   814   prevent the transaction from being opened.
   815 
   815 
       
   816 ``txnclose``
       
   817   Run after any repository transaction has been commited. At this
       
   818   point, the transaction can no longer be rolled back. The hook will run
       
   819   after the lock is released. The reason for the transaction will
       
   820   be in ``$HG_TXNNAME``. The rest of the available data will vary
       
   821   according the event that happened during the transaction. New changesets
       
   822   will add ``$HG_NODE`` (id of the first added changeset), ``$HG_URL``
       
   823   and ``$HG_SOURCE`` variables, bookmarks and phases changes will set
       
   824   ``HG_BOOKMARK_MOVED`` and ``HG_PHASES_MOVED`` to ``1``, etc.
       
   825 
   816 ``pretxnchangegroup``
   826 ``pretxnchangegroup``
   817   Run after a changegroup has been added via push, pull or unbundle,
   827   Run after a changegroup has been added via push, pull or unbundle,
   818   but before the transaction has been committed. Changegroup is
   828   but before the transaction has been committed. Changegroup is
   819   visible to hook program. This lets you validate incoming changes
   829   visible to hook program. This lets you validate incoming changes
   820   before accepting them. Passed the ID of the first new changeset in
   830   before accepting them. Passed the ID of the first new changeset in