hgbook

view en/examples/results/hook.ws.better.out @ 590:a2923aa93da9

Fix which files are included in the generated XML.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu Mar 26 20:24:44 2009 -0700 (2009-03-26)
parents 44d1363234d2
children 4432ad34b8e5
line source
1 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
2 [hooks]
3 pretxncommit.whitespace = .hg/check_whitespace.py
4 <prompt>$</prompt> <userinput>echo 'a ' &gt;&gt; a</userinput>
5 <prompt>$</prompt> <userinput>hg commit -A -m 'add new line with trailing whitespace'</userinput>
6 a, line 2: trailing whitespace added
7 commit message saved to .hg/commit.save
8 transaction abort!
9 rollback completed
10 abort: pretxncommit.whitespace hook exited with status 1
11 <prompt>$</prompt> <userinput>sed -i 's, *$,,' a</userinput>
12 <prompt>$</prompt> <userinput>hg commit -A -m 'trimmed trailing whitespace'</userinput>
13 a, line 2: trailing whitespace added
14 commit message saved to .hg/commit.save
15 transaction abort!
16 rollback completed
17 abort: pretxncommit.whitespace hook exited with status 1
18 </screen>