[RFC] make -n0 the default for log -or- make annotate and similar commands calculate merged revs
Ian Clatworthy
ian.clatworthy at internode.on.net
Wed Jun 10 08:39:26 BST 2009
Robert Collins wrote:
> When we annotate a file, we show a dotted revno on most-or-many lines.
>
> However,
> bzr log | less
> /<revno>
>
> Won't find that revision.
> I think this is a bug. Either annotate should do more work, so that what
> it shows is findable, or log show be showing it.
I don't have a strong opinion on annotate's text-based UI. It's far more
interesting to use gannotate or qannotate than the command line version.
To begin with, there's no need to run log separately because the
revision information is displayed the moment you click on the line.
As far as log goes, I don't think having an "interesting" id - one that
you *know* is a merge revision 99% of the time - justifies changing the
default for log. If I run "ls ~ | grep bazaar.conf", I'm hardly
surprised that it doesn't find it in subdirectories.
> My preference is to make -n0 the default - after some time with it as
> non-default, I find I am typing -n0 on 3/4 times that I run log (and the
> times I don't type it I usually have to run log again).
Progress disclosure is a principle we ought to embrace throughout the
UI. If power users like yourself want deep searching most the time, I
think they should add an alias, not ask for everything to be displayed
by default. The latter becomes overwhelming IMHO, particularly for new
users.
Ian C.
More information about the bazaar
mailing list