hgbook
view it/examples/hook.msglen.go.it @ 982:a9c3a727f253
ch01-intro.xml : some errors corrected and translated the last few part untranslated
author | Frédéric Bouquet <youshe.jaalon@gmail.com> |
---|---|
date | Tue Sep 08 18:20:00 2009 +0200 (2009-09-08) |
parents | 713f0f69029a 5bbebcdfb533 |
children |
line source
1 <!-- BEGIN hook.msglen.go -->
2 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
3 [hooks]
4 pretxncommit.lunghezza_messaggio = test `hg tip --template {desc} | wc -c` -ge 15
5 <prompt>$</prompt> <userinput>echo a > a</userinput>
6 <prompt>$</prompt> <userinput>hg add a</userinput>
7 <prompt>$</prompt> <userinput>hg commit -A -m "Troppo breve."</userinput>
8 transazione abortita!
9 ripristino completato
10 fallimento: l'hook pretxncommit.lunghezza_messaggio รจ terminato con codice di stato 1
11 <prompt>$</prompt> <userinput>hg commit -A -m "Abbastanza lungo."</userinput>
12 </screen>
13 <!-- END hook.msglen.go -->