view tests/test-hook @ 573:fbfbd4e506c3

transaction: nullify journal after close() -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 transaction: nullify journal after close() This keeps us from trying to cleanup in __del__. bug spotted by K Thananchayan <thananck@yahoo.com> manifest hash: 1f4c5fa43d2458cdcb6ec0f0a7066b3c3e699f33 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxwQ6ywK+sNU5EO8RAuGhAJ9+BnKILwRCF9EKlPTz2zptiysQ/QCgsB3s VKIehiStv+ibWQQi15k4mwk= =nZD1 -----END PGP SIGNATURE-----
author mpm@selenic.com
date Sat, 02 Jul 2005 13:16:42 -0800
parents 2ad41189bee5
children 7e4843b7efd2
line wrap: on
line source

#!/bin/sh -x

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 -t "test" -u test -d "0 0"