hgbook

view en/examples/hook.ws @ 47:6f37e6a7d8cd

Get Emacs to figure out what syntax highlighting to use for examples.
author Bryan O'Sullivan <bos@serpentine.com>
date Sun Jul 23 23:38:41 2006 -0700 (2006-07-23)
parents 012df94a02fe
children 18210d46491f
line source
1 #!/bin/bash
3 cp $EXAMPLE_DIR/data/check_whitespace.py .
5 hg init a
6 cd a
7 echo '[hooks]' > .hg/hgrc
8 echo "pretxncommit.whitespace = hg export tip | (! grep -qP '^\\+.*[ \\t]$')" >> .hg/hgrc
10 #$ name: simple
12 cat .hg/hgrc
13 echo 'a ' > a
14 hg commit -A -m 'test with trailing whitespace'