bos@47: #!/bin/bash bos@47: bos@44: cp $EXAMPLE_DIR/data/check_whitespace.py . bos@44: bos@44: hg init a bos@44: cd a bos@44: echo '[hooks]' > .hg/hgrc bos@44: echo "pretxncommit.whitespace = hg export tip | (! grep -qP '^\\+.*[ \\t]$')" >> .hg/hgrc bos@44: bos@44: #$ name: simple bos@44: bos@44: cat .hg/hgrc bos@44: echo 'a ' > a bos@44: hg commit -A -m 'test with trailing whitespace'