comparison tests/test-hook @ 1481:acd1832ebf31

Change test-hook to test multiple hooks
author Matt Mackall <mpm@selenic.com>
date Sat, 29 Oct 2005 13:45:01 -0700
parents 0902ffece4b4
children 9488d53233b5
comparison
equal deleted inserted replaced
1480:ae0d8d632b83 1481:acd1832ebf31
2 2
3 hg init 3 hg init
4 echo "[hooks]" > .hg/hgrc 4 echo "[hooks]" > .hg/hgrc
5 echo 'precommit = echo precommit hook' >> .hg/hgrc 5 echo 'precommit = echo precommit hook' >> .hg/hgrc
6 echo 'commit = echo commit hook: $NODE' >> .hg/hgrc 6 echo 'commit = echo commit hook: $NODE' >> .hg/hgrc
7 echo 'commit.b = echo commit hook b' >> .hg/hgrc
7 echo a > a 8 echo a > a
8 hg add a 9 hg add a
9 hg commit -m "test" -d "0 0" 10 hg commit -m "test" -d "0 0"