[MERGE] log -n/--levels

Ian Clatworthy ian.clatworthy at internode.on.net
Fri Jan 23 09:27:14 GMT 2009


Thanks to John for his review and tweak vote. I'm resubmitting rather than
tweaking though as the proposed UI has changed ...

Ian Clatworthy wrote:

> Another possibility is --XXX=integer where 1 means flat and 0 means fully
> nested. Options for XXX include --nested, --depth and --levels. I can
> imagine some users liking to show just the one extra level down at times
> instead of linear vs everything, particularly when using PQM.

Vincent, fullermd, poolie and I chatted about this on IRC the other night.
In the end, the consensus was that --levels/-n was the way to go and that
a value of 0 meaning all was fine, given asking for zero levels didn't
make much sense otherwise.

So this patch lets --long fans see just the mainline:

  bzr -n1

And --short/--line fans to see the full graph:

  bzr --short -n0

And everyone to look down just below PQM commits if they want:

  bzr -n2

It also improves the --short output so that revisions with dotted revnos
have their details indented correctly, even in column 1.

Ian C.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: log-n-levels.patch
Type: text/x-diff
Size: 40051 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20090123/c44736c2/attachment-0001.bin 


More information about the bazaar mailing list