tests/test-hook
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 11 Nov 2005 15:33:08 -0800
changeset 1527 c13fce7167c2
parent 1481 acd1832ebf31
child 1734 9488d53233b5
permissions -rwxr-xr-x
don't print anything about file of unsupported type unless the file was specified on the command line

#!/bin/sh

hg init
echo "[hooks]" > .hg/hgrc
echo 'precommit = echo precommit hook' >> .hg/hgrc
echo 'commit = echo commit hook: $NODE' >> .hg/hgrc
echo 'commit.b = echo commit hook b' >> .hg/hgrc
echo a > a
hg add a
hg commit -m "test" -d "0 0"