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

Aaron Bentley aaron.bentley at utoronto.ca
Tue Dec 13 16:12:56 GMT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

James Blackwell wrote:
> 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

(there's already the --long flag, not --full)

While I'm flattered, and I'm all for sensible defaults, this would be
suboptimal for some common uses, as it does not show merges.  I do
frequently find that I want to hide merges, though, which is when I turn
to --line.  It also doesn't show revno, but I guess I'm convinced that
should be added to it.

I think it would be good to provide a general facility for setting
defaults.  e.g.

$ bzr default-options log
No default options set for "bzr log"
$ bzr default-options log --line
Default options for "bzr log" are "--line"
$ bzr log -r -1
Martin Pool 2005-12-13 MsgEditor tests should be skipped on platforms
withou...
$ bzr --no-defaults log -r -1
- ------------------------------------------------------------
revno: 1487
committer: Martin Pool <mbp at sourcefrog.net>
branch nick: bzr.dev (Main development branch)
timestamp: Tue 2005-12-13 16:48:04 +1100
message:
  MsgEditor tests should be skipped on platforms without unicode fs.

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

You could do it by branch nick, or by committer.  I should note that my
committer id changes more frequently than my branch nick.
Unfortunately, you'll get the same pattern if J. Random Hacker starts
working on bzr.dev.

But it's UI, so the requirements for reliability aren't as great.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDnvMI0F+nu1YWqI0RAogxAJwJwlpyUpiTWxJYcl9kd+JxcHiEUACfa4ID
81rGOJz/P5WbYaHbs4XPHD4=
=DgP3
-----END PGP SIGNATURE-----




More information about the bazaar mailing list