[MERGE] Give full control over plugins to bzrlib clients

Aaron Bentley aaron at aaronbentley.com
Thu Nov 13 20:33:29 GMT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all,

This patch gives bzrlib clients the control they need over which plugins
are loaded.

The plugin path is no longer set when bzrlib is imported.  Clients that
want a plugin path set should call set_plugins_path.

load_plugins now allows clients to specify exactly which path should be
used.  This allows clients to avoid importing plugins from system plugin
location.

disable_plugins now prevents plugins from being directly imported, even
if they are bundled with Bazaar.  It is implemented in terms of
load_plugins.

Finally, I've removed Vincent's colordiff change, since it is no longer
needed to make "bzr selftest --no-plugins" work correctly.

There are no tests, because plugin machinery is hard to test.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkcjxgACgkQ0F+nu1YWqI0KgwCfetna5d7T/iD90pZSGOf3rBt/
mg0AniGtSxXgqm7fqKWJ+QxzH7ITgs37
=JYZ5
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: control-plugin-path-3840.patch
Type: text/x-diff
Size: 8417 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20081113/f358be83/attachment.bin 


More information about the bazaar mailing list