tests/test-hook
author mpm@selenic.com
Fri, 01 Jul 2005 11:24:09 -0800
changeset 561 cdddf4652aec
parent 487 2ad41189bee5
child 749 7e4843b7efd2
permissions -rwxr-xr-x
Fix dodiff/changes -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Fix dodiff/changes dodiff was failing to pass both nodes to changes changes was comparing things backwards, resulting in added/deleted confusion in dodiff changes was deleting things from cached manifests, use copy() changes now sorts output lists manifest hash: 6ad972b0895b9d855e246efef49c2ebd943946b3 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCxZhZywK+sNU5EO8RApZWAJ9mYv1zc7IjXPIMwbVsfroQs8jfBACgn7R7 rTqLTTyIkM1OpL/ebnMtCOY= =VcIr -----END PGP SIGNATURE-----
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
487
2ad41189bee5 Add initial hook support
mpm@selenic.com
parents:
diff changeset
     1
#!/bin/sh -x
2ad41189bee5 Add initial hook support
mpm@selenic.com
parents:
diff changeset
     2
2ad41189bee5 Add initial hook support
mpm@selenic.com
parents:
diff changeset
     3
hg init
2ad41189bee5 Add initial hook support
mpm@selenic.com
parents:
diff changeset
     4
echo "[hooks]" > .hg/hgrc
2ad41189bee5 Add initial hook support
mpm@selenic.com
parents:
diff changeset
     5
echo 'precommit = echo precommit hook' >> .hg/hgrc
2ad41189bee5 Add initial hook support
mpm@selenic.com
parents:
diff changeset
     6
echo 'commit = echo commit hook: $NODE' >> .hg/hgrc
2ad41189bee5 Add initial hook support
mpm@selenic.com
parents:
diff changeset
     7
echo a > a
2ad41189bee5 Add initial hook support
mpm@selenic.com
parents:
diff changeset
     8
hg add a
2ad41189bee5 Add initial hook support
mpm@selenic.com
parents:
diff changeset
     9
hg commit -t "test" -u test -d "0 0"