lp:~vila/bzr/539574-plugins-in-zip

Created by Vincent Ladeuil and last modified
Get this branch:
bzr branch lp:~vila/bzr/539574-plugins-in-zip
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

Owner:
Vincent Ladeuil
Project:
Bazaar
Status:
Development

Recent revisions

5095. By Vincent Ladeuil

Reproduce bug #539574: can't load plugins from zip files.

* bzrlib/tests/test_plugins.py:
(TestPluginMixin.create_zipped_plugin_package): Helper to create
plugins in zip files.
(TestDisablePlugin.test_not_loaded): Test reproducing bug #539574.

5094. By Vincent Ladeuil

Fix warnings during autoload, add doc and a NEWS entry.

* bzrlib/tests/test_plugins.py:
(TestDisablePlugin.test_not_loaded): Ensure we don't get import
warnings about the disabled plugin.

* bzrlib/plugin.py:
(load_from_dir): Make sure we don't try to import disabled plugins
to avoid the warnings about the import errors.

5093. By Vincent Ladeuil

Cleaner fix for bug #411413.

* bzrlib/tests/test_plugins.py:
(TestDisablePlugin.setUp): Add more cleanups.

* bzrlib/plugin.py:
(_PluginBlackListImporter): Make blacklist an attribute and use a
singleton.
(set_plugins_path): Take disabled plugins into account.

5092. By Vincent Ladeuil

Crude fix for bug #411413.

* bzrlib/tests/test_plugins.py:
(TestPluginMixin.create_plugin,
TestPluginMixin.create_plugin_package): Helpers to create simple
test plugins.
(TestDisablePlugin): Check that a disbled plugin can't be imported
nor automatically loaded.

* bzrlib/plugin.py:
(PluginBlackListImporter): Raise ImportError when a disabled plugin
is imported.

5091. By Vincent Ladeuil

Fix typo in test name.

5090. By Vincent Ladeuil

Slight plugin tests rewriting.

* bzrlib/tests/test_plugins.py:
(TestPluginMixin): Factor out common operations.
(TestLoadingPlugins, TestPlugins): Simplify accordingly.

5089. By Vincent Ladeuil

Fix imports in test_plugins.

5088. By Vincent Ladeuil

Cosmetic changes.

* bzrlib/tests/test_plugins.py:
Define PLUGIN_TEST where it's used.

* bzrlib/plugin.py:
(get_standard_plugins_path): Fix typo.

5087. By Vincent Ladeuil

Remove get_default_plugin_path() obsoleted since 2.0.

5086. By Canonical.com Patch Queue Manager <email address hidden>

(Jelmer) Add --per-file-timestamps option to 'bzr export'.

Branch metadata

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

Subscribers