tests/test-hook
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
Fri, 11 Nov 2005 15:34:09 -0800
changeset 1530 abfab59fce79
parent 1481 acd1832ebf31
child 1734 9488d53233b5
permissions -rwxr-xr-x
add a releasefn keyword to lock.lock releasefn is a function that will be executed when the lock is released

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