doc/hgrc.5.txt
changeset 1485 625f3f13d7be
parent 1316 b650bfdfc7ee
child 1583 32a4e6802864
equal deleted inserted replaced
1484:840808c57969 1485:625f3f13d7be
   118     # them to the working dir
   118     # them to the working dir
   119     **.txt = tempfile: unix2dos -n INFILE OUTFILE
   119     **.txt = tempfile: unix2dos -n INFILE OUTFILE
   120 
   120 
   121 hooks::
   121 hooks::
   122   Commands that get automatically executed by various actions such as
   122   Commands that get automatically executed by various actions such as
   123   starting or finishing a commit.
   123   starting or finishing a commit. Multiple commands can be run for
       
   124   the same action by appending a suffix to the action. Overriding a
       
   125   site-wide hook can be done by changing its value or setting it to
       
   126   an empty string.
       
   127 
       
   128   Example .hg/hgrc:
       
   129 
       
   130     [hooks]
       
   131     # do not use the site-wide hook
       
   132     commit =
       
   133     commit.email = /my/email/hook
       
   134     commit.autobuild = /my/build/hook
       
   135 
   124   changegroup;;
   136   changegroup;;
   125     Run after a changegroup has been added via push or pull. Passed
   137     Run after a changegroup has been added via push or pull. Passed
   126     the ID of the first new changeset in $NODE.
   138     the ID of the first new changeset in $NODE.
   127   commit;;
   139   commit;;
   128     Run after a changeset has been created or for each changeset
   140     Run after a changeset has been created or for each changeset