1
#!/bin/sh -x
2
3
hg init
4
echo "[hooks]" > .hg/hgrc
5
echo 'precommit = echo precommit hook' >> .hg/hgrc
6
echo 'commit = echo commit hook: $NODE' >> .hg/hgrc
7
echo a > a
8
hg add a
9
hg commit -t "test" -u test -d "0 0"