--- a/mercurial/help/config.txt Fri Mar 31 11:06:42 2017 +0200
+++ b/mercurial/help/config.txt Fri Mar 31 11:08:11 2017 +0200
@@ -842,8 +842,11 @@
priority.incoming.autobuild = 1
Most hooks are run with environment variables set that give useful
-additional information. For each hook below, the environment
-variables it is passed are listed with names of the form ``$HG_foo``.
+additional information. For each hook below, the environment variables
+it is passed are listed with names of the form ``$HG_foo``. The
+``$HG_HOOKTYPE`` variable is set for all hooks. It contains the type of
+hook which triggered the run. In the example about this will be
+``$HG_HOOKTYPE=incoming``.
``changegroup``
Run after a changegroup has been added via push, pull or unbundle. ID of the