tests/test-bad-extension
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Fri, 09 Feb 2007 03:48:28 -0200
changeset 4070 961ccb615cf7
parent 3990 96e21337dc03
child 4139 efe6f92c0847
permissions -rwxr-xr-x
Handle functions as the value of a hooks.<name> config variable This should make it easier for extensions to add a hook when they're loaded.

#!/bin/sh

echo 'syntax error' > badext.py
abspath=`pwd`/badext.py

echo '[extensions]' >> $HGRCPATH
echo "gpg =" >> $HGRCPATH
echo "hgext.gpg =" >> $HGRCPATH
echo "badext = $abspath" >> $HGRCPATH

hg -q help help