annotate en/examples/results/hook.simple.init.out @ 609:c44d5854620b
Fix up chapter 1.
author |
Bryan O'Sullivan <bos@serpentine.com> |
date |
Tue Mar 31 22:38:30 2009 -0700 (2009-03-31) |
parents |
44d1363234d2 |
children |
4432ad34b8e5 |
rev |
line source |
bos@564
|
1 <screen><prompt>$</prompt> <userinput>hg init hook-test</userinput>
|
bos@564
|
2 <prompt>$</prompt> <userinput>cd hook-test</userinput>
|
bos@564
|
3 <prompt>$</prompt> <userinput>echo '[hooks]' >> .hg/hgrc</userinput>
|
bos@564
|
4 <prompt>$</prompt> <userinput>echo 'commit = echo committed $HG_NODE' >> .hg/hgrc</userinput>
|
bos@564
|
5 <prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
|
bos@144
|
6 [hooks]
|
bos@144
|
7 commit = echo committed $HG_NODE
|
bos@564
|
8 <prompt>$</prompt> <userinput>echo a > a</userinput>
|
bos@564
|
9 <prompt>$</prompt> <userinput>hg add a</userinput>
|
bos@564
|
10 <prompt>$</prompt> <userinput>hg commit -m 'testing commit hook'</userinput>
|
bos@144
|
11 committed
|
bos@564
|
12 </screen>
|