tests/test-bad-extension.t
author Mads Kiilerich <madski@unity3d.com>
Tue, 14 Apr 2015 23:44:03 -0400
changeset 24729 3e48462ec15a
parent 23172 e955549cd045
child 25364 de23a552fc23
permissions -rw-r--r--
rpms: for packages with their own python, put it in /opt/python-hg This is more compliant with the FHS and Fedora packaging guidelines.

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

  $ cat <<EOF >> $HGRCPATH
  > [extensions]
  > gpg =
  > hgext.gpg =
  > badext = $abspath
  > badext2 =
  > EOF

  $ 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 [-ec] [TOPIC]
  
  show help for a given topic or a help overview