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