hgbook

view en/examples/results/hook.msglen.go.out @ 597:e0d9eb01e4c2

Remove references to RWH.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu Mar 26 23:05:28 2009 -0700 (2009-03-26)
parents 44d1363234d2
children 4432ad34b8e5
line source
1 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
2 [hooks]
3 pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10
4 <prompt>$</prompt> <userinput>echo a &gt; a</userinput>
5 <prompt>$</prompt> <userinput>hg add a</userinput>
6 <prompt>$</prompt> <userinput>hg commit -A -m 'too short'</userinput>
7 transaction abort!
8 rollback completed
9 abort: pretxncommit.msglen hook exited with status 1
10 <prompt>$</prompt> <userinput>hg commit -A -m 'long enough'</userinput>
11 </screen>