annotate en/examples/results/hook.msglen.go.out @ 611:4432ad34b8e5
Check in example outputs with begin/end markers.
author |
Bryan O'Sullivan <bos@serpentine.com> |
date |
Tue Mar 31 12:19:01 2009 -0700 (2009-03-31) |
parents |
0d5935744f87 |
children |
|
rev |
line source |
bos@611
|
1 <!-- BEGIN hook.msglen.go -->
|
bos@564
|
2 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
|
bos@194
|
3 [hooks]
|
bos@564
|
4 pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10
|
bos@564
|
5 <prompt>$</prompt> <userinput>echo a > a</userinput>
|
bos@564
|
6 <prompt>$</prompt> <userinput>hg add a</userinput>
|
bos@564
|
7 <prompt>$</prompt> <userinput>hg commit -A -m 'too short'</userinput>
|
bos@194
|
8 transaction abort!
|
bos@194
|
9 rollback completed
|
bos@273
|
10 abort: pretxncommit.msglen hook exited with status 1
|
bos@564
|
11 <prompt>$</prompt> <userinput>hg commit -A -m 'long enough'</userinput>
|
bos@564
|
12 </screen>
|
bos@611
|
13 <!-- END hook.msglen.go -->
|