tests/test-hook
author mpm@selenic.com
Fri, 26 Aug 2005 20:52:31 -0700
changeset 1078 33f40d0c6124
parent 814 0902ffece4b4
child 1481 acd1832ebf31
permissions -rwxr-xr-x
Various cleanups for tarball support s/tarball/archive/ query config rather than maintaining a list default all archive support to off use changeset nodes rather than manifest nodes use web:name for archive name don't use rev number in filename, it's not portable refactor manifest lookup bits use finally: clause to delete tmpfile

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