tests/test-hook
author Thomas Arendsen Hein <thomas@intevation.de>
Wed, 10 Aug 2005 08:41:23 +0100
changeset 865 2d2fee33ec68
parent 814 0902ffece4b4
child 1481 acd1832ebf31
permissions -rwxr-xr-x
Cleanup after previous changes: - there are only two states for the exec bit, so no need to override it. - file_ variable is only once now, so it self.file(f) can be used directly.

#!/bin/sh

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