hgbook

annotate it/examples/hook.msglen.go.it @ 977:719b03ea27c8

merge with Italian, and very (few) work on ch03
author Romain PELISSE <belaran@gmail.com>
date Fri Sep 04 16:33:46 2009 +0200 (2009-09-04)
parents 713f0f69029a 5bbebcdfb533
children
rev   line source
Giulio@797 1 <!-- BEGIN hook.msglen.go -->
Giulio@797 2 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
Giulio@797 3 [hooks]
Giulio@797 4 pretxncommit.lunghezza_messaggio = test `hg tip --template {desc} | wc -c` -ge 15
Giulio@797 5 <prompt>$</prompt> <userinput>echo a &gt; a</userinput>
Giulio@797 6 <prompt>$</prompt> <userinput>hg add a</userinput>
gpiancastelli@850 7 <prompt>$</prompt> <userinput>hg commit -A -m "Troppo breve."</userinput>
Giulio@797 8 transazione abortita!
Giulio@797 9 ripristino completato
Giulio@797 10 fallimento: l'hook pretxncommit.lunghezza_messaggio รจ terminato con codice di stato 1
gpiancastelli@850 11 <prompt>$</prompt> <userinput>hg commit -A -m "Abbastanza lungo."</userinput>
Giulio@797 12 </screen>
Giulio@797 13 <!-- END hook.msglen.go -->