tests/test-hook
author Robin Farine <robin.farine@terminus.org>
Tue, 24 Jan 2006 13:57:09 +1300
changeset 1633 94c179a92f4a
parent 1481 acd1832ebf31
child 1734 9488d53233b5
permissions -rwxr-xr-x
copy/rename '.' or '..' correctly

#!/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"