tests/test-bad-extension.t
author Adrian Buehlmann <adrian@cadifra.com>
Tue, 15 Feb 2011 14:41:49 +0100
changeset 13408 19ad316e5be3
parent 12640 6cc4b14fb76b
child 14284 1f9e11f65cd7
permissions -rw-r--r--
transaction: use posixfile and unlink from util instead of open() and os.unlink() Avoids potential issues with file access on Windows (e.g. AV-scanners).

  $ 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
  $ echo "badext2 =" >> $HGRCPATH

  $ hg -q help help
  *** failed to import extension badext from $TESTTMP/badext.py: bit bucket overflow
  *** failed to import extension badext2: No module named badext2
  hg help [TOPIC]
  
  show help for a given topic or a help overview