Created by Vincent Ladeuil on 2010-04-02 and last modified on 2010-04-06
Get this branch:
bzr branch lp:~vila/bzr/552922-plugins-at
Only Vincent Ladeuil can upload to this branch. If you are Vincent Ladeuil please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Vincent Ladeuil

Recent revisions

5109. By Vincent Ladeuil on 2010-04-06

Fixed as per Ian's review.

5108. By Vincent Ladeuil on 2010-04-02

Fix bug #552922 by controlling which files can be used to load a plugin.

* bzrlib/tests/test_plugins.py:
(TestLoadPluginAt.test_loading_from___init__): Add one more test
when loading from a file.

* bzrlib/plugin.py:
(_PluginImporter.load_module): Don't use _find_module as its
contract is also to find the plugin name. We *know* the plugin
name here.

5107. By Vincent Ladeuil on 2010-04-02

Reproduce bug #552922.

* bzrlib/tests/test_plugins.py:
(TestLoadPluginAt.test_loading_from___init__): Only __init__.py is
a valid source for loading a plugin defined as a package.

5106. By Vincent Ladeuil on 2010-03-24

Force __package__ to fix pqm failure.

5105. By Vincent Ladeuil on 2010-03-24

Fix pqm failure.

* bzrlib/tests/test_plugins.py:
(TestLoadPluginAt.test_compiled_loaded): The compiled filed
depends on the -O python option.

5104. By Vincent Ladeuil on 2010-03-17

Cleanup docs.

5103. By Vincent Ladeuil on 2010-03-17

More tests.

* bzrlib/tests/test_plugins.py:
(TestPluginMixin.create_plugin_package.cleanup): Fix some random?
lazy import failure.
TestLoadPluginAt.test_submodule_loading): Test that we load the
compiled version if available and that we can load submodules.

* bzrlib/plugin.py:
(_PluginImporter.load_module): Be ready for submodules.

5102. By Vincent Ladeuil on 2010-03-17

Make sure we can load from a non-standard directory name.

* bzrlib/tests/test_plugins.py:
(TestPluginMixin.create_plugin): Add a doc string and a variable.
(TestPluginMixin.create_plugin_package): Leave callers decide the
directory name.
(TestLoadPluginAt.setUp): Use a non-standard directory name to
ensure we can work around python limitations.
(TestLoadPluginAt.assertTestFooLoadedFrom): Add more specific
TestLoadPluginAt.test_import): Use a non-standard directory name.
(TestLoadPluginAt.test_loading): Check that the specific plugins
are loaded automatically.

* bzrlib/plugin.py:
(load_from_path): Load explicitly specified plugins.
(_load_plugin_module): Factored out from load_from_dir().

5101. By Vincent Ladeuil on 2010-03-17

Merge one more doc fix

5100. By Vincent Ladeuil on 2010-03-17

Add NEWS entry and cleanup doc.

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
This branch contains Public information 
Everyone can see this information.