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]' &gt;&gt; .hg/hgrc</userinput>
<prompt>$</prompt> <userinput>echo 'commit = echo committed $HG_NODE' &gt;&gt; .hg/hgrc</userinput>
<prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
[hooks]
commit = echo committed $HG_NODE
<prompt>$</prompt> <userinput>echo a &gt; a</userinput>
<prompt>$</prompt> <userinput>hg add a</userinput>
<prompt>$</prompt> <userinput>hg commit -m 'testing commit hook'</userinput>
committed 
</screen>