[PLUGIN] Lesslog -> run bzr log through less automatically

James Blackwell jblack at merconline.com
Tue Dec 13 15:44:21 GMT 2005


On Fri, Dec 09, 2005 at 09:10:36AM -0600, John Arbash Meinel wrote:
> Michael Ellerman wrote:
> > Hiya,
> > 
> > I'm a lazy arse, so typing "bzr log | less" is just too much for me. Hence the 
> > "lesslog" plugin I just wrote, alias "ll" which does the less part for you.
> > 
> > It takes all the same options as regular log, in fact it's a subclass.
> > 
> > Don't be too lazy to branch it!
> > 
> > http://michael.ellerman.id.au/files/bzr/lesslog
> > cheers
> > 
> Maybe I'm missing the true value of "bzr log | less". If someone has
> reasons why it is better, please let me know. My understanding is that
> the major reason we do it, is because that is what "cvs log" does. But
> "cvs log" is a really crappy command, which we probably don't really
> want to emulate.

I find myself running 'bzr log -r-10..-1 --lines' quite a lot. Its usually
what I want about 90% of the time.

I think log could be a bit more useful if: 

 * --lines was the default, with the old behaviour coming back with --full

 * A sane default is put in place for bzr log, say -15..-1. .5. If
   somebody really wants more than 15 lines of logs, they can type 
   -r-1..1


> Arch had an interesting implementation, where because you have named
> branches, it could go back to "base-0" and would only display the
> semi-recent ancestry (provided you used lots of short-lived branches).
> I know it has been proposed to keep track of the branch-point (the
> revision when "bzr branch" was run. Not updated by pull, etc).
> But I think a lot of branches are mirrors, and so it doesn't make sense
> to have a specific history point like that.

Interesting problem trying to figure out how to reliably detect when a
branch becomes diverged in a reasonable manner.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051213/d5c340ac/attachment.pgp 


More information about the bazaar mailing list