changeset 1485:625f3f13d7be

mention running multiple hooks in the doc
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Mon, 31 Oct 2005 10:47:27 -0800
parents 840808c57969
children d7809d6e9db2
files doc/hgrc.5.txt
diffstat 1 files changed, 13 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.