view tests/test-hook @ 555:39a1cfb03ebd

Unbreak dirstate debug commands -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Unbreak dirstate debug commands manifest hash: 0a4081443c954d278062dbfbc205119eab350191 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxQAJywK+sNU5EO8RAoIvAJ4wYqOWdVtzEL0BClN0+pLNghyS0ACggwmG 05MpMLTY6+VSueiHMwre+UE= =zo+4 -----END PGP SIGNATURE-----
author mpm@selenic.com
date Fri, 01 Jul 2005 00:34:17 -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"