tests/test-bad-extension
author Peter Meerwald <pmeerw@pmeerw.net>
Fri, 17 Aug 2007 22:43:38 -0300
changeset 5193 942c0827dc5b
parent 4139 efe6f92c0847
permissions -rwxr-xr-x
recognize user:password in URLs that include port numbers. when giving user/pwd in an URL, eg. hg pull http://user:pwd@host.com:666/hg/something, hg would still ask for user/pwd in interactive mode (or fail in non-interactive)

#!/bin/sh

echo 'raise Exception("bit bucket overflow")' > badext.py
abspath=`pwd`/badext.py

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

hg -q help help