mention running multiple hooks in the doc
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Mon, 31 Oct 2005 10:47:27 -0800
changeset 1485 625f3f13d7be
parent 1484 840808c57969
child 1486 d7809d6e9db2
mention running multiple hooks in the doc
doc/hgrc.5.txt
--- a/doc/hgrc.5.txt	Mon Oct 31 09:58:05 2005 -0800
+++ b/doc/hgrc.5.txt	Mon Oct 31 10:47:27 2005 -0800
@@ -120,7 +120,19 @@
 
 hooks::
   Commands that get automatically executed by various actions such as
-  starting or finishing a commit.
+  starting or finishing a commit. Multiple commands can be run for
+  the same action by appending a suffix to the action. Overriding a
+  site-wide hook can be done by changing its value or setting it to
+  an empty string.
+
+  Example .hg/hgrc:
+
+    [hooks]
+    # do not use the site-wide hook
+    commit =
+    commit.email = /my/email/hook
+    commit.autobuild = /my/build/hook
+
   changegroup;;
     Run after a changegroup has been added via push or pull. Passed
     the ID of the first new changeset in $NODE.