tests/test-hook
author Bryan O'Sullivan <bos@serpentine.com>
Thu, 22 Sep 2005 21:15:57 -0700
changeset 1317 008d3666bf41
parent 814 0902ffece4b4
child 1481 acd1832ebf31
permissions -rwxr-xr-x
Print commit time/date from perspective of committer. Previously, it was printed in the time zone of the reader, but with the committer's time zone offset. It is now consistent.

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