1
+ hg init
2
+ echo '[hooks]'
3
+ echo 'precommit = echo precommit hook'
4
+ echo 'commit = echo commit hook: $NODE'
5
+ echo a
6
+ hg add a
7
+ hg commit -t test -u test -d '0 0'
8
precommit hook
9
commit hook: acb14030fe0a21b60322c440ad2d20cf7685a376