bos@144: $ \textbf{cat .hg/hgrc} bos@144: [hooks] bos@167: pretxncommit.whitespace = hg export tip | (! egrep -q '^\textbackslash{}+.*[ \textbackslash{}t]$') bos@144: $ \textbf{echo 'a ' > a} bos@144: $ \textbf{hg commit -A -m 'test with trailing whitespace'} bos@144: adding a bos@144: transaction abort! bos@144: rollback completed bos@273: abort: pretxncommit.whitespace hook exited with status 1 bos@144: $ \textbf{echo 'a' > a} bos@144: $ \textbf{hg commit -A -m 'drop trailing whitespace and try again'}