[PATCH 1 of 5 STABLE] help: add note about TXNID for Python hook

FUJIWARA Katsunori foozy at lares.dti.ne.jp
Tue May 19 15:39:31 UTC 2015


# HG changeset patch
# User FUJIWARA Katsunori <foozy at lares.dti.ne.jp>
# Date 1432049408 -32400
#      Wed May 20 00:30:08 2015 +0900
# Branch stable
# Node ID 11f3cae961f815ee7f8acc4e0312ed724d4ef8fe
# Parent  ef4538ba67ef0d63fe55d4defa7b5993f0d16b6f
help: add note about TXNID for Python hook

>From the first (3.4 or d283517b260b), `TXNID` is passed to Python
hooks without lowering its name.

diff --git a/mercurial/help/config.txt b/mercurial/help/config.txt
--- a/mercurial/help/config.txt
+++ b/mercurial/help/config.txt
@@ -908,7 +908,8 @@
 ``ui``), a repository object (keyword ``repo``), and a ``hooktype``
 keyword that tells what kind of hook is used. Arguments listed as
 environment variables above are passed as keyword arguments, with no
-``HG_`` prefix, and names in lower case.
+``HG_`` prefix, and names in lower case (exceptionally, ``TXNID``
+isn't lowered)
 
 If a Python hook returns a "true" value or raises an exception, this
 is treated as a failure.


More information about the Mercurial-devel mailing list