hgbook
view en/examples/results/hook.msglen.go.out @ 580:8366882f67f2
Fix up more formatting goop
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Wed Mar 18 00:00:58 2009 -0700 (2009-03-18) |
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 > 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>