diff 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
line wrap: on
line diff
--- a/mercurial/help/config.txt	Tue Feb 24 00:04:55 2015 +0900
+++ b/mercurial/help/config.txt	Wed Dec 10 18:19:49 2014 -0800
@@ -808,6 +808,11 @@
   changeset to tag is in ``$HG_NODE``. Name of tag is in ``$HG_TAG``. Tag is
   local if ``$HG_LOCAL=1``, in repository if ``$HG_LOCAL=0``.
 
+``pretxnopen``
+  Run before any new repository transaction is open. The reason for the
+  transaction will be in ``$HG_TXNNAME``. A non-zero status will
+  prevent the transaction from being opened.
+
 ``pretxnchangegroup``
   Run after a changegroup has been added via push, pull or unbundle,
   but before the transaction has been committed. Changegroup is