annotate en/examples/results/hook.msglen.go.out @ 593:8dfdbe1cf982
Update Apache2 configuration.
author |
Bryan O'Sullivan <bos@serpentine.com> |
date |
Thu Mar 26 22:00:32 2009 -0700 (2009-03-26) |
parents |
44d1363234d2 |
children |
4432ad34b8e5 |
rev |
line source |
bos@564
|
1 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
|
bos@194
|
2 [hooks]
|
bos@564
|
3 pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10
|
bos@564
|
4 <prompt>$</prompt> <userinput>echo a > a</userinput>
|
bos@564
|
5 <prompt>$</prompt> <userinput>hg add a</userinput>
|
bos@564
|
6 <prompt>$</prompt> <userinput>hg commit -A -m 'too short'</userinput>
|
bos@194
|
7 transaction abort!
|
bos@194
|
8 rollback completed
|
bos@273
|
9 abort: pretxncommit.msglen hook exited with status 1
|
bos@564
|
10 <prompt>$</prompt> <userinput>hg commit -A -m 'long enough'</userinput>
|
bos@564
|
11 </screen>
|