Mercurial > 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, 23 Jul 2006 23:38:41 -0700 |
parents | 012df94a02fe |
children | 18210d46491f |
line wrap: on
line source
#!/bin/bash cp $EXAMPLE_DIR/data/check_whitespace.py . hg init a cd a echo '[hooks]' > .hg/hgrc echo "pretxncommit.whitespace = hg export tip | (! grep -qP '^\\+.*[ \\t]$')" >> .hg/hgrc #$ name: simple cat .hg/hgrc echo 'a ' > a hg commit -A -m 'test with trailing whitespace'