hgbook
view it/examples/ch09-hook.ws.simple.it @ 1114:527b86d55d4a
inotify: update installation information
inotify is shipped in Mercurial since 1.0, which greatly simplifies the installation process
inotify is shipped in Mercurial since 1.0, which greatly simplifies the installation process
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Sun Dec 13 16:35:56 2009 +0900 (2009-12-13) |
parents | 713f0f69029a 5bbebcdfb533 |
children |
line source
1 <!-- BEGIN ch09/hook.ws.simple -->
2 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
3 [hooks]
4 pretxncommit.spazio_bianco = hg export tip | (! egrep -q '^\+.*[ \t]$')
5 <prompt>$</prompt> <userinput>echo 'a ' > a</userinput>
6 <prompt>$</prompt> <userinput>hg commit -A -m "Collaudo con spazio bianco in coda."</userinput>
7 aggiungo a
8 transazione abortita!
9 ripristino completato
10 fallimento: l'hook pretxncommit.spazio_bianco รจ terminato con codice di stato 1
11 <prompt>$</prompt> <userinput>echo 'a' > a</userinput>
12 <prompt>$</prompt> <userinput>hg commit -A -m "Elimina lo spazio bianco in coda e riprova."</userinput>
13 </screen>
14 <!-- END ch09/hook.ws.simple -->