$HOME/.bazaar/plugins Path Not Used by Default
John Arbash Meinel
john at arbash-meinel.com
Fri Oct 15 16:21:09 BST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 10/15/2010 10:14 AM, Tom Browder wrote:
> On Fri, Oct 15, 2010 at 09:25, John Arbash Meinel
> <john at arbash-meinel.com> wrote:
>> On 10/15/2010 7:37 AM, Tom Browder wrote:
>>> According to the bzr docs, on *nix, directory $BZR_HOME ($HOME/.bazaar
>>> by default), subdirectory "plugins" is, by default, searched for
>>> plugins--but that doesn't work for me (using bzr 2.2.1).
> ...
>> If you define BZR_PLUGIN_PATH then it overrides whatever default
>> $HOME/.bazaar/plugins directory.
>
> Okay, I see see that's true now--but I can't find that said in the
> docs (lots of docs, though).
>
>> I certainly use the latter directory all the time, across many versions
>> of bzr. Do you care to dig deeper into this?
>
> Yes, I would.
>
> IMHO, the $BZR_HOME/plugins directory ought to always be searched
> last, even if BZR_PLUGIN path is defined (unless the directory is
> already defined in BZR_PLUGIN_PATH). I use the BZR_PLUGIN_PATH for
> system-wide plugins (and I imagine others do, too) and of course user
> plugin conflicts may appear, but that is the user's problem.
>
> Regards,
>
> -Tom
>
We intentionally had BZR_PLUGIN_PATH have a way to *exclude* personal
plugins, in case you want to try something. I don't see it being
particularly hard to add some sort of:
BZR_PLUGIN_PATH="/system/wide/plugins:$HOME/.bazaar/plugins"
If you want the behavior you are asking for. And users that want to
configure it further can always do:
BZR_PLUGIN_PATH="/new/path:$BZR_PLUGIN_PATH"
Our actual policy is that user specific plugins take precedence to
system-wide plugins. Why do you feel that order should be reversed?
(IMO, the closer you are to the user, the more control you should have...)
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAky4cWUACgkQJdeBCYSNAAOyEACeJYh2NUj3oa3BSs6GiBdPL/9l
PDoAoI6GJc3Jum6QowlOpaJH65p8BhX3
=r5do
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list