annotate it/examples/hook.msglen.go.it @ 1078:708f570346a9
2.4.1 some para zh translated
author |
Zhaoping Sun <zhaopingsun@gmail.com> |
date |
Wed Nov 18 22:22:34 2009 -0500 (2009-11-18) |
parents |
26b05b7dd445 |
children |
719b03ea27c8 |
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 -->
|