Mercurial > hgbook
view en/examples/results/hook.simple.init.out @ 688:4bb10cfa3812
Make actual use of the preface.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Thu, 26 Mar 2009 19:58:09 -0700 |
parents | 0d5935744f87 |
children | 4432ad34b8e5 |
line wrap: on
line source
<screen><prompt>$</prompt> <userinput>hg init hook-test</userinput> <prompt>$</prompt> <userinput>cd hook-test</userinput> <prompt>$</prompt> <userinput>echo '[hooks]' >> .hg/hgrc</userinput> <prompt>$</prompt> <userinput>echo 'commit = echo committed $HG_NODE' >> .hg/hgrc</userinput> <prompt>$</prompt> <userinput>cat .hg/hgrc</userinput> [hooks] commit = echo committed $HG_NODE <prompt>$</prompt> <userinput>echo a > a</userinput> <prompt>$</prompt> <userinput>hg add a</userinput> <prompt>$</prompt> <userinput>hg commit -m 'testing commit hook'</userinput> committed </screen>