comparison mercurial/help/config.txt @ 24281:e9ede9b4c2f8

hook: have a generic hook for transaction opening We are adding generic hooking for all transactions. We do not really have any useful information to include when opening the transaction but this is a useful time to allow a hook anyway. We better let people abort transaction before they happen than after multiple seconds/minutes of processing.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 10 Dec 2014 18:19:49 -0800
parents a04c7b74b3d5
children db8679812f84
comparison
equal deleted inserted replaced
24280:6c55e37ba5f2 24281:e9ede9b4c2f8
806 Run before creating a tag. Exit status 0 allows the tag to be 806 Run before creating a tag. Exit status 0 allows the tag to be
807 created. Non-zero status will cause the tag to fail. ID of 807 created. Non-zero status will cause the tag to fail. ID of
808 changeset to tag is in ``$HG_NODE``. Name of tag is in ``$HG_TAG``. Tag is 808 changeset to tag is in ``$HG_NODE``. Name of tag is in ``$HG_TAG``. Tag is
809 local if ``$HG_LOCAL=1``, in repository if ``$HG_LOCAL=0``. 809 local if ``$HG_LOCAL=1``, in repository if ``$HG_LOCAL=0``.
810 810
811 ``pretxnopen``
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
814 prevent the transaction from being opened.
815
811 ``pretxnchangegroup`` 816 ``pretxnchangegroup``
812 Run after a changegroup has been added via push, pull or unbundle, 817 Run after a changegroup has been added via push, pull or unbundle,
813 but before the transaction has been committed. Changegroup is 818 but before the transaction has been committed. Changegroup is
814 visible to hook program. This lets you validate incoming changes 819 visible to hook program. This lets you validate incoming changes
815 before accepting them. Passed the ID of the first new changeset in 820 before accepting them. Passed the ID of the first new changeset in