Mercurial > hgbook
annotate 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 |
rev | line source |
---|---|
663
0d5935744f87
Switch from LaTeX to XML for examples.
Bryan O'Sullivan <bos@serpentine.com>
parents:
662
diff
changeset
|
1 <screen><prompt>$</prompt> <userinput>cat .hg/hgrc</userinput> |
144
006bbad1f190
Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
2 [hooks] |
663
0d5935744f87
Switch from LaTeX to XML for examples.
Bryan O'Sullivan <bos@serpentine.com>
parents:
662
diff
changeset
|
3 pretxncommit.whitespace = hg export tip | (! egrep -q '^\+.*[ \t]$') |
0d5935744f87
Switch from LaTeX to XML for examples.
Bryan O'Sullivan <bos@serpentine.com>
parents:
662
diff
changeset
|
4 <prompt>$</prompt> <userinput>echo 'a ' > a</userinput> |
0d5935744f87
Switch from LaTeX to XML for examples.
Bryan O'Sullivan <bos@serpentine.com>
parents:
662
diff
changeset
|
5 <prompt>$</prompt> <userinput>hg commit -A -m 'test with trailing whitespace'</userinput> |
144
006bbad1f190
Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
6 adding a |
006bbad1f190
Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
7 transaction abort! |
006bbad1f190
Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff
changeset
|
8 rollback completed |
273
00f69e8825c5
Bring book up to date with recent changes.
Bryan O'Sullivan <bos@serpentine.com>
parents:
167
diff
changeset
|
9 abort: pretxncommit.whitespace hook exited with status 1 |
663
0d5935744f87
Switch from LaTeX to XML for examples.
Bryan O'Sullivan <bos@serpentine.com>
parents:
662
diff
changeset
|
10 <prompt>$</prompt> <userinput>echo 'a' > a</userinput> |
0d5935744f87
Switch from LaTeX to XML for examples.
Bryan O'Sullivan <bos@serpentine.com>
parents:
662
diff
changeset
|
11 <prompt>$</prompt> <userinput>hg commit -A -m 'drop trailing whitespace and try again'</userinput> |
0d5935744f87
Switch from LaTeX to XML for examples.
Bryan O'Sullivan <bos@serpentine.com>
parents:
662
diff
changeset
|
12 </screen> |