2006-08-23 05:49:30 +04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-03-04 20:09:29 +03:00
|
|
|
echo 'raise Exception("bit bucket overflow")' > badext.py
|
2006-08-23 05:49:30 +04:00
|
|
|
abspath=`pwd`/badext.py
|
|
|
|
|
|
|
|
echo '[extensions]' >> $HGRCPATH
|
2006-12-26 17:33:50 +03:00
|
|
|
echo "gpg =" >> $HGRCPATH
|
|
|
|
echo "hgext.gpg =" >> $HGRCPATH
|
2006-08-23 05:49:30 +04:00
|
|
|
echo "badext = $abspath" >> $HGRCPATH
|
2008-03-03 20:46:57 +03:00
|
|
|
echo "badext2 =" >> $HGRCPATH
|
2006-08-23 05:49:30 +04:00
|
|
|
|
2008-03-03 20:46:57 +03:00
|
|
|
hg -q help help 2>&1 | python -c \
|
|
|
|
"import sys; sys.stdout.write(sys.stdin.read().replace('$abspath', '.../badext.py'))"
|