hgbook

diff 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 diff
     1.1 --- a/en/examples/results/hook.ws.better.out	Mon Mar 09 21:37:47 2009 -0700
     1.2 +++ b/en/examples/results/hook.ws.better.out	Thu Mar 26 20:24:44 2009 -0700
     1.3 @@ -1,17 +1,18 @@
     1.4 -$ \textbf{cat .hg/hgrc}
     1.5 +<screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput>
     1.6  [hooks]
     1.7  pretxncommit.whitespace = .hg/check_whitespace.py
     1.8 -$ \textbf{echo 'a ' >> a}
     1.9 -$ \textbf{hg commit -A -m 'add new line with trailing whitespace'}
    1.10 +<prompt>$</prompt> <userinput>echo 'a ' &gt;&gt; a</userinput>
    1.11 +<prompt>$</prompt> <userinput>hg commit -A -m 'add new line with trailing whitespace'</userinput>
    1.12  a, line 2: trailing whitespace added
    1.13  commit message saved to .hg/commit.save
    1.14  transaction abort!
    1.15  rollback completed
    1.16  abort: pretxncommit.whitespace hook exited with status 1
    1.17 -$ \textbf{sed -i 's, *$,,' a}
    1.18 -$ \textbf{hg commit -A -m 'trimmed trailing whitespace'}
    1.19 +<prompt>$</prompt> <userinput>sed -i 's, *$,,' a</userinput>
    1.20 +<prompt>$</prompt> <userinput>hg commit -A -m 'trimmed trailing whitespace'</userinput>
    1.21  a, line 2: trailing whitespace added
    1.22  commit message saved to .hg/commit.save
    1.23  transaction abort!
    1.24  rollback completed
    1.25  abort: pretxncommit.whitespace hook exited with status 1
    1.26 +</screen>