[merge] show locale, traceback in plugins

Robert Collins robertc at robertcollins.net
Fri Sep 21 04:24:45 BST 2007


On Fri, 2007-09-21 at 13:10 +1000, Martin Pool wrote:
> On 9/20/07, Robert Collins <robertc at robertcollins.net> wrote:
> > What is your locale? We handle unicode characters ok, but need a locale
> > with which to tell what the disk path encoding is - and the C locale
> > cannot do this.
> 
> There have been several cases where people report an error and we
> immediately need to ask them for this information.  This adds the
> locale and also the plugin list, which someone else wanted.  (It might
> be nice to show plugin versions as a future enhancement.)

how about:
    err_file.write("plugins:\n")
    for a_plugin in plugin.plugins():
        err_file.write("  %s [%s]" % 
            (a_plugin.path(), a_plugin.__version__))

-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/f7ce0145/attachment.pgp 


More information about the bazaar mailing list