test-hook
10 lines
| 246 B
| text/plain
|
TextLexer
/ tests / test-hook
Thomas Arendsen Hein
|
r800 | #!/bin/sh | ||
mpm@selenic.com
|
r487 | |||
hg init | ||||
echo "[hooks]" > .hg/hgrc | ||||
echo 'precommit = echo precommit hook' >> .hg/hgrc | ||||
echo 'commit = echo commit hook: $NODE' >> .hg/hgrc | ||||
Matt Mackall
|
r1481 | echo 'commit.b = echo commit hook b' >> .hg/hgrc | ||
mpm@selenic.com
|
r487 | echo a > a | ||
hg add a | ||||
mpm@selenic.com
|
r749 | hg commit -m "test" -d "0 0" | ||