bos@144: $ \textbf{cat .hg/hgrc} bos@144: [hooks] bos@150: pretxncommit.whitespace = .hg/check_whitespace.py bos@144: $ \textbf{echo 'a ' >> a} bos@144: $ \textbf{hg commit -A -m 'add new line with trailing whitespace'} bos@144: a, line 2: trailing whitespace added bos@144: commit message saved to .hg/commit.save bos@144: abort: pretxncommit.whitespace hook exited with status 1 bos@144: transaction abort! bos@144: rollback completed bos@165: $ \textbf{sed -i 's, *$,,' a} bos@144: $ \textbf{hg commit -A -m 'trimmed trailing whitespace'} bos@165: a, line 2: trailing whitespace added bos@144: commit message saved to .hg/commit.save bos@144: abort: pretxncommit.whitespace hook exited with status 1 bos@144: transaction abort! bos@144: rollback completed