annotate ja/examples/hook.ws.better.out @ 290:b0db5adf11c1 ja_root

fork Japanese translation.
author Yoshiki Yazawa <yaz@cc.rim.or.jp>
date Wed, 06 Feb 2008 17:43:11 +0900
parents en/examples/hook.ws.better.out@00f69e8825c5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
144
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
1 $ \textbf{cat .hg/hgrc}
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
2 [hooks]
150
8cf40d4d9377 Fix broken example.
Bryan O'Sullivan <bos@serpentine.com>
parents: 144
diff changeset
3 pretxncommit.whitespace = .hg/check_whitespace.py
144
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
4 $ \textbf{echo 'a ' >> a}
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
5 $ \textbf{hg commit -A -m 'add new line with trailing whitespace'}
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
6 a, line 2: trailing whitespace added
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
7 commit message saved to .hg/commit.save
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
8 transaction abort!
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
9 rollback completed
273
00f69e8825c5 Bring book up to date with recent changes.
Bryan O'Sullivan <bos@serpentine.com>
parents: 165
diff changeset
10 abort: pretxncommit.whitespace hook exited with status 1
165
06d18465df03 Make an example run more predictably.
Bryan O'Sullivan <bos@serpentine.com>
parents: 150
diff changeset
11 $ \textbf{sed -i 's, *$,,' a}
144
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
12 $ \textbf{hg commit -A -m 'trimmed trailing whitespace'}
165
06d18465df03 Make an example run more predictably.
Bryan O'Sullivan <bos@serpentine.com>
parents: 150
diff changeset
13 a, line 2: trailing whitespace added
144
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
14 commit message saved to .hg/commit.save
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
15 transaction abort!
006bbad1f190 Add expected output files.
Bryan O'Sullivan <bos@serpentine.com>
parents:
diff changeset
16 rollback completed
273
00f69e8825c5 Bring book up to date with recent changes.
Bryan O'Sullivan <bos@serpentine.com>
parents: 165
diff changeset
17 abort: pretxncommit.whitespace hook exited with status 1