hgbook

diff it/examples/ch09-hook.ws.better.it @ 976:713f0f69029a

merge with Italian, and very (few) work on ch03
author Romain PELISSE <belaran@gmail.com>
date Fri Sep 04 16:33:35 2009 +0200 (2009-09-04)
parents
children 719b03ea27c8
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/it/examples/ch09-hook.ws.better.it	Fri Sep 04 16:33:35 2009 +0200
     1.3 @@ -0,0 +1,15 @@
     1.4 +<!-- BEGIN ch09/hook.ws.better -->
     1.5 +<screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
     1.6 +[hooks]
     1.7 +pretxncommit.spazio_bianco = .hg/controllo_spazio_bianco.py
     1.8 +<prompt>$</prompt> <userinput>echo 'a ' &gt;&gt; a</userinput>
     1.9 +<prompt>$</prompt> <userinput>hg commit -A -m "Aggiunge una nuova riga con spazio bianco in coda."</userinput>
    1.10 +a, riga 1: aggiunto spazio bianco in coda
    1.11 +messaggio di commit salvato nel file .hg/commit.save
    1.12 +transazione abortita!
    1.13 +ripristino completato
    1.14 +fallimento: l'hook pretxncommit.spazio_bianco รจ terminato con codice di stato 1
    1.15 +<prompt>$</prompt> <userinput>sed -i 's, *$,,' a</userinput>
    1.16 +<prompt>$</prompt> <userinput>hg commit -A -m "Rimosso spazio bianco in coda."</userinput>
    1.17 +</screen>
    1.18 +<!-- END ch09/hook.ws.better -->