view en/examples/results/hook.msglen.go.out @ 739:a13813534ccd

Fix all xref to figs
author Dongsheng Song <dongsheng.song@gmail.com>
date Tue, 17 Mar 2009 10:43:45 +0800
parents 0d5935744f87
children 4432ad34b8e5
line wrap: on
line source

<screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
[hooks]
pretxncommit.msglen = test `hg tip --template {desc} | wc -c` -ge 10
<prompt>$</prompt> <userinput>echo a &gt; a</userinput>
<prompt>$</prompt> <userinput>hg add a</userinput>
<prompt>$</prompt> <userinput>hg commit -A -m 'too short'</userinput>
transaction abort!
rollback completed
abort: pretxncommit.msglen hook exited with status 1
<prompt>$</prompt> <userinput>hg commit -A -m 'long enough'</userinput>
</screen>