cat >> /srv/hg/helloworld/.hg/hgrc << EOF
[hooks]
pretxnchangegroup = /srv/commithook.lua hg /srv/hg/helloworld 2
EOF
