# HG changeset patch # User Benoit Boissinot # Date 1130784447 28800 # Node ID 625f3f13d7be071ae7b59a03fa533870318d039b # Parent 840808c579698846b3b31436017ab03d2af88f7d mention running multiple hooks in the doc diff -r 840808c57969 -r 625f3f13d7be 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.