annotate en/examples/results/hook.ws.simple.out @ 564:0d5935744f87
Switch from LaTeX to XML for examples.
author |
Bryan O'Sullivan <bos@serpentine.com> |
date |
Mon Mar 09 21:39:23 2009 -0700 (2009-03-09) |
parents |
44d1363234d2 |
children |
4432ad34b8e5 |
rev |
line source |
bos@564
|
1 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
|
bos@144
|
2 [hooks]
|
bos@564
|
3 pretxncommit.whitespace = hg export tip | (! egrep -q '^\+.*[ \t]$')
|
bos@564
|
4 <prompt>$</prompt> <userinput>echo 'a ' > a</userinput>
|
bos@564
|
5 <prompt>$</prompt> <userinput>hg commit -A -m 'test with trailing whitespace'</userinput>
|
bos@144
|
6 adding a
|
bos@144
|
7 transaction abort!
|
bos@144
|
8 rollback completed
|
bos@273
|
9 abort: pretxncommit.whitespace hook exited with status 1
|
bos@564
|
10 <prompt>$</prompt> <userinput>echo 'a' > a</userinput>
|
bos@564
|
11 <prompt>$</prompt> <userinput>hg commit -A -m 'drop trailing whitespace and try again'</userinput>
|
bos@564
|
12 </screen>
|