Location of plugins

Alexander Belchenko bialix at ukr.net
Thu Oct 1 10:50:59 BST 2009


Philippe Lhoste пишет:
> Windows user here...
> I have set BZR_HOME to point to a data folder in another partition.
> I have seen the plugins should go to %BZR_HOME%/bazaar/2.0/plugins

You also can set BZR_PLUGIN_PATH to explicitly point to plugins directory.

> So I installed some plugins, like extmerge and xmloutput.
> Works fine.
> I am a bit surprised that Bzr Explorer installs in Bazaar install dir, 
> but why not.

Explorer have included into official 2.0 installer.

I suppose you are talking about separate installer for Explorer. It was 
deliberate solution but you can easily select different location to install.

> I saw that Bazaar 2.0 came with xmloutput plugin out of the box. Good. 
> It has version 0.8.5 while I had version 0.8.3.
> When I type bzr plugins, it mentions only the version 0.8.3. Why not, 
> some hierarchy have to be setup.

This is because your plugins have priority over system-wide installed 
ones. Because you can update them easily if there is urgent need rather 
than wait for new installer build.

> But I have some suggestions.
> 
> Perhaps the installer should detect previous versions of plugins in user 
> dir and ask which version to keep/install.

ETOOCOMPLICATEDFORME

> 
> And/or, perhaps the plugins command should detect there are two 
> instances, a system one and a user one, and report both (as a warning?), 
> indicating which one will be used.

Maybe. In fact info about copies hidden inside .bzr.log.
Changing behavior of plugins command might be non-trivial, because it 
will affect entire plugin loading subsystem and IMO nobody will be happy 
if this subsystem eventually becomes slower than usual.

> I just deleted the old version and I got my upgrade, but since the 
> "principle of least surprise" is popular these days, I thought I should 
> report the issue.

There is too much boring tiny technical details under the hood.




More information about the bazaar mailing list