[PING] [PATCH] show full name of plugin in help

Alexander Belchenko bialix at ukr.net
Thu Oct 19 07:22:45 BST 2006


Martin Pool пишет:
> On 18 Oct 2006, Alexander Belchenko <bialix at ukr.net> wrote:
>> Alexander Belchenko пишет:
>>> Attached patch provide support for show full name of plugin (plugin
>>> directory) in help even if it contains dot separated version number
>>> (e.g. myplug-1.2.3). With test, of course.
>>>
>>> Also this test fixes cleanup after test in test_plugin_help_shows_plugin.
>> I'd like to know status of my patch. Is it rejected or forgotten? Or 
>> delayed for 0.13? Or?..
>>
>> I understand that my changes is minor and intended only for versioned 
>> plugins (e.g. bzrtools-0.11/0.12, bzr-gtk-0.11/0.12). But anyway it 
>> could be useful.
> 
> I think last time we talked I was trying to work out why you parsed the
> pathnames the way you did.
> 
> But more broadly, can you explain why  you want the full name in the help?
> 'bzr plugins' already shows the full path to each plugin, which for me
> is more helpful in discovering where something is if it's causing a
> problem.

As Aaron point in the discussion of bug
plugins command is hidden and primarily designed for debugging.

I wrote my patch because I lazy man and don't want rename plugins such 
as bzrtools-0.11 and bzr-gtk-0.11 to something pythonic. Because it 
works in any case. I just don't like that help for any bzr-gtk-0.11 
plugin command looks like following:

$ bzr gannotate --help
usage: bzr gannotate FILENAME [LINE]
aliases: gblame, gpraise

(From plugin "bzr-gtk-0")

GTK+ annotate.

Browse changes to FILENAME line by line in a GTK+ window.

options:
   --plain        don't highlight annotation lines
   --all          show annotations on all lines
   --line=LINENO  jump to specified line number
   -h, --help     show help message


Please take a look to 4 line of help:

(From plugin "bzr-gtk-0")

This is what I want to fix. But Aaron and you say that it don't need to 
fix because it's not broken. I give up.

--
Alexander





More information about the bazaar mailing list