hgbook

annotate en/examples/results/hook.ws.simple.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.ws.simple -->
bos@564 2 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
bos@144 3 [hooks]
bos@564 4 pretxncommit.whitespace = hg export tip | (! egrep -q '^\+.*[ \t]$')
bos@564 5 <prompt>$</prompt> <userinput>echo 'a ' &gt; a</userinput>
bos@564 6 <prompt>$</prompt> <userinput>hg commit -A -m 'test with trailing whitespace'</userinput>
bos@144 7 adding a
bos@144 8 transaction abort!
bos@144 9 rollback completed
bos@273 10 abort: pretxncommit.whitespace hook exited with status 1
bos@564 11 <prompt>$</prompt> <userinput>echo 'a' &gt; a</userinput>
bos@564 12 <prompt>$</prompt> <userinput>hg commit -A -m 'drop trailing whitespace and try again'</userinput>
bos@564 13 </screen>
bos@611 14 <!-- END hook.ws.simple -->