annotate it/examples/hook.msglen.go.it @ 1002:55d1bf9b47a4
French translation : merge with Romain Perlisse's repository
author |
Frédéric Bouquet <youshe.jaalon@gmail.com> |
date |
Mon Sep 14 01:31:50 2009 +0200 (2009-09-14) |
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 -->
|