annotate it/examples/hook.simple.init.it @ 839:0a49072e8c7f
Final editing for chapters 4-7.
author |
gpiancastelli |
date |
Fri Aug 21 21:42:22 2009 +0200 (2009-08-21) |
parents |
|
children |
7252e7b7f07d |
rev |
line source |
Giulio@797
|
1 <!-- BEGIN hook.simple.init -->
|
Giulio@797
|
2 <screen><prompt>$</prompt> <userinput>hg init hook-di-test</userinput>
|
Giulio@797
|
3 <prompt>$</prompt> <userinput>cd hook-di-test</userinput>
|
Giulio@797
|
4 <prompt>$</prompt> <userinput>echo '[hooks]' >> .hg/hgrc</userinput>
|
Giulio@797
|
5 <prompt>$</prompt> <userinput>echo 'commit = echo inserito $HG_NODE' >> .hg/hgrc</userinput>
|
Giulio@797
|
6 <prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
|
Giulio@797
|
7 [hooks]
|
Giulio@797
|
8 commit = echo inserito $HG_NODE
|
Giulio@797
|
9 <prompt>$</prompt> <userinput>echo a > a</userinput>
|
Giulio@797
|
10 <prompt>$</prompt> <userinput>hg add a</userinput>
|
Giulio@797
|
11 <prompt>$</prompt> <userinput>hg commit -m "Collaudo l'hook di commit"</userinput>
|
Giulio@797
|
12 inserito 35ce7b98906996dea87740158ba6c3d7bcfa2448
|
Giulio@797
|
13 </screen>
|
Giulio@797
|
14 <!-- END hook.simple.init -->
|