hgbook

view en/examples/results/hook.ws.better.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.better -->
2 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
3 [hooks]
4 pretxncommit.whitespace = .hg/check_whitespace.py
5 <prompt>$</prompt> <userinput>echo 'a ' &gt;&gt; a</userinput>
6 <prompt>$</prompt> <userinput>hg commit -A -m 'add new line with trailing whitespace'</userinput>
7 a, line 2: trailing whitespace added
8 commit message saved to .hg/commit.save
9 transaction abort!
10 rollback completed
11 abort: pretxncommit.whitespace hook exited with status 1
12 <prompt>$</prompt> <userinput>sed -i 's, *$,,' a</userinput>
13 <prompt>$</prompt> <userinput>hg commit -A -m 'trimmed trailing whitespace'</userinput>
14 a, line 2: trailing whitespace added
15 commit message saved to .hg/commit.save
16 transaction abort!
17 rollback completed
18 abort: pretxncommit.whitespace hook exited with status 1
19 </screen>
20 <!-- END hook.ws.better -->