Mercurial > hgbook
view en/examples/results/hook.ws.better.out @ 739:a13813534ccd
Fix all xref to figs
author | Dongsheng Song <dongsheng.song@gmail.com> |
---|---|
date | Tue, 17 Mar 2009 10:43:45 +0800 |
parents | 0d5935744f87 |
children | 4432ad34b8e5 |
line wrap: on
line source
<screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput> [hooks] pretxncommit.whitespace = .hg/check_whitespace.py <prompt>$</prompt> <userinput>echo 'a ' >> a</userinput> <prompt>$</prompt> <userinput>hg commit -A -m 'add new line with trailing whitespace'</userinput> a, line 2: trailing whitespace added commit message saved to .hg/commit.save transaction abort! rollback completed abort: pretxncommit.whitespace hook exited with status 1 <prompt>$</prompt> <userinput>sed -i 's, *$,,' a</userinput> <prompt>$</prompt> <userinput>hg commit -A -m 'trimmed trailing whitespace'</userinput> a, line 2: trailing whitespace added commit message saved to .hg/commit.save transaction abort! rollback completed abort: pretxncommit.whitespace hook exited with status 1 </screen>