Mercurial > hgbook
view en/examples/results/hook.ws.simple.out @ 750:c15e039d98b8
appB-mq-ref.xml: Typo fix
author | Dongsheng Song <dongsheng.song@gmail.com> |
---|---|
date | Fri, 20 Mar 2009 16:50:51 +0800 |
parents | 0d5935744f87 |
children | 4432ad34b8e5 |
line wrap: on
line source
<screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput> [hooks] pretxncommit.whitespace = hg export tip | (! egrep -q '^\+.*[ \t]$') <prompt>$</prompt> <userinput>echo 'a ' > a</userinput> <prompt>$</prompt> <userinput>hg commit -A -m 'test with trailing whitespace'</userinput> adding a transaction abort! rollback completed abort: pretxncommit.whitespace hook exited with status 1 <prompt>$</prompt> <userinput>echo 'a' > a</userinput> <prompt>$</prompt> <userinput>hg commit -A -m 'drop trailing whitespace and try again'</userinput> </screen>