[merge] show locale, traceback in plugins

Robert Collins robertc at robertcollins.net
Fri Sep 21 06:58:53 BST 2007


On Fri, 2007-09-21 at 15:55 +1000, Martin Pool wrote:
> > how about:
> >     err_file.write("plugins:\n")
> >     for a_plugin in plugin.plugins():
> >         err_file.write("  %s [%s]" %
> >             (a_plugin.path(), a_plugin.__version__))
> 
> I think that needs to be a_plugin.get since they may not declare a
> version.  I would rather keep it a bit more compact and have them on
> one line people can get the path from bzr plugins, and that's not
> likely to be particularly interesting to people seeing the bug report
> -- or is it?

plugins() returns objects, __version__ is 'unknown' if no version is
declared. (see cmd_plugins).

As for the path, its very interesting as it shows whether its a system
version or shipped version or local override etc

-Rob

-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070921/084a8da6/attachment.pgp 


More information about the bazaar mailing list