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