annotate it/examples/hook.msglen.go.it @ 1020:53dfddc566d8
French: corrections in xml tags
author |
André Sintzoff <andre.sintzoff@gmail.com> |
date |
Tue Dec 01 13:40:01 2009 +0100 (2009-12-01) |
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 > 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 -->
|