1159 will be visible to the hook program. This lets you validate the transaction |
1159 will be visible to the hook program. This lets you validate the transaction |
1160 content or change it. Exit status 0 allows the commit to proceed. A non-zero |
1160 content or change it. Exit status 0 allows the commit to proceed. A non-zero |
1161 status will cause the transaction to be rolled back. The reason for the |
1161 status will cause the transaction to be rolled back. The reason for the |
1162 transaction opening will be in ``$HG_TXNNAME``, and a unique identifier for |
1162 transaction opening will be in ``$HG_TXNNAME``, and a unique identifier for |
1163 the transaction will be in ``$HG_TXNID``. The rest of the available data will |
1163 the transaction will be in ``$HG_TXNID``. The rest of the available data will |
1164 vary according the transaction type. New changesets will add ``$HG_NODE`` |
1164 vary according the transaction type. Changes unbundled to the repository will |
1165 (the ID of the first added changeset), ``$HG_NODE_LAST`` (the ID of the last |
1165 add ``$HG_URL`` and ``$HG_SOURCE``. New changesets will add ``$HG_NODE`` (the |
1166 added changeset), ``$HG_URL`` and ``$HG_SOURCE`` variables. Bookmark and |
1166 ID of the first added changeset), ``$HG_NODE_LAST`` (the ID of the last added |
1167 phase changes will set ``$HG_BOOKMARK_MOVED`` and ``$HG_PHASES_MOVED`` to |
1167 changeset). Bookmark and phase changes will set ``$HG_BOOKMARK_MOVED`` and |
1168 ``1`` respectively. The number of new obsmarkers, if any, will be in |
1168 ``$HG_PHASES_MOVED`` to ``1`` respectively. The number of new obsmarkers, if |
1169 ``$HG_NEW_OBSMARKERS``, etc. |
1169 any, will be in ``$HG_NEW_OBSMARKERS``, etc. |
1170 |
1170 |
1171 ``pretxnclose-bookmark`` |
1171 ``pretxnclose-bookmark`` |
1172 Run right before a bookmark change is actually finalized. Any repository |
1172 Run right before a bookmark change is actually finalized. Any repository |
1173 change will be visible to the hook program. This lets you validate the |
1173 change will be visible to the hook program. This lets you validate the |
1174 transaction content or change it. Exit status 0 allows the commit to |
1174 transaction content or change it. Exit status 0 allows the commit to |