rfc: log -r-5..-1 output when branch contains less than 5 revisions

John A Meinel john at arbash-meinel.com
Thu Feb 2 18:47:09 GMT 2006


Alexander Belchenko wrote:
> It's somewhat rare question. But I'd like to hear some comments.
> 
> In the time when some branch initialized from ground and have few
> commits behaviour of log when requested revisions with -N form is
> somewhat discouraging. Bzr says that branch has no revision 0 (-1, -2,
> -3, etc). Yes, it is not. But when user request revision in negative
> form user specify not absolute but relative revisions numbers. Why not
> trunkate this request to first existent revision? When log printed revno
> information is printed too. So when user request 5 last revisions but
> output contain less revisions (e.g. only 3 revisions) it could figure
> out that branch contain too few revisions. I guess so.
> 
> This question is grows based on John Meinel's shortlog plugin and work
> of Aaron Bentley for make defaults options for commands.
> 
> -- 
> Alexander

I would agree. I think it is okay to interpret negative numbers such
that they stop at 0.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060202/9b0140c6/attachment.pgp 


More information about the bazaar mailing list