bos@611: bos@564: $ cat .hg/hgrc bos@144: [hooks] bos@564: pretxncommit.whitespace = hg export tip | (! egrep -q '^\+.*[ \t]$') bos@564: $ echo 'a ' > a bos@564: $ 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@564: $ echo 'a' > a bos@564: $ hg commit -A -m 'drop trailing whitespace and try again' bos@564: bos@611: