hgbook

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