##// END OF EJS Templates
help: document the ''HG_TXNID'' environment variable during hooks...
Pierre-Yves David -
r24791:89c5881d default
parent child Browse files
Show More
@@ -810,8 +810,9 b' variables it is passed are listed with n'
810
810
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`` and a unique identifier for the
814 prevent the transaction from being opened.
814 transaction will be in ``HG_TXNID``. A non-zero status will prevent the
815 transaction from being opened.
815
816
816 ``pretxnclose``
817 ``pretxnclose``
817 Run right before the transaction is actually finalized. Any
818 Run right before the transaction is actually finalized. Any
@@ -819,11 +820,12 b' variables it is passed are listed with n'
819 validate the transaction content or change it. Exit status 0 allows
820 validate the transaction content or change it. Exit status 0 allows
820 the commit to proceed. Non-zero status will cause the transaction to
821 the commit to proceed. Non-zero status will cause the transaction to
821 be rolled back. The reason for the transaction opening will be in
822 be rolled back. The reason for the transaction opening will be in
822 ``$HG_TXNNAME``. The rest of the available data will vary according
823 ``$HG_TXNNAME`` and a unique identifier for the transaction will be in
823 the transaction type. New changesets will add
824 ``HG_TXNID``. The rest of the available data will vary according the
824 ``$HG_NODE`` (id of the first added changeset), ``$HG_URL`` and
825 transaction type. New changesets will add ``$HG_NODE`` (id of the
825 ``$HG_SOURCE`` variables, bookmarks and phases changes will set
826 first added changeset), ``$HG_URL`` and ``$HG_SOURCE`` variables,
826 ``HG_BOOKMARK_MOVED`` and ``HG_PHASES_MOVED`` to ``1``, etc.
827 bookmarks and phases changes will set ``HG_BOOKMARK_MOVED`` and
828 ``HG_PHASES_MOVED`` to ``1``, etc.
827
829
828 ``txnclose``
830 ``txnclose``
829 Run after any repository transaction has been commited. At this
831 Run after any repository transaction has been commited. At this
General Comments 0
You need to be logged in to leave comments. Login now