[patch] bzr diff -r 1501..

John Arbash Meinel john at arbash-meinel.com
Mon Jan 9 18:43:03 GMT 2006


Robey Pointer wrote:
> 
> On 8 Jan 2006, at 20:19, Martin Pool wrote:
> 
>> On Sun, 2006-01-08 at 18:21 -0800, Robey Pointer wrote:
>>
>>> 'bzr diff -r 1501..' is broken currently in bzr.dev -- is that
>>> intentional?  (It seems to interpret "1501.." as "1501..0".)  Is
>>> there a new improved syntax for that?  I haven't been able to keep up
>>> with the mailing list entirely, sorry.
>>>
>>> If it's a bug, I guess it's easy to fix, but I wanted to make sure it
>>> isn't an intentional change to a new syntax first.
>>
>>
>> it is a bug.
> 
> 
> Here's a tiny patch to fix it by turning any missing final revision 
> spec into an implicit "-1".
> 
> robey

The problem is sometimes you want '-1', and sometimes you want
WorkingTree. Which is why -r X.. has been defined by the command.

For instance, 'log' has no working tree definition, it only does
committed revisions. But 'diff' would definitely want the ability to
diff against the working tree.

Same thing for why missing the beginning is command defined.
'bzr log -r ..X'  Log from the beginning until revision X
'bzr diff -r ..X' Possibly 'give me just the diff for X'. In my head it
is an okay way of introducing 'give me just the changeset for this
revision' rather than requiring people to write "bzr diff -r X-1..X" all
the time.

John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060109/c1d9fbf5/attachment.pgp 


More information about the bazaar mailing list