How to get the diff between two arbitrary remote revisions?

Robey Pointer robey at lag.net
Wed Nov 16 02:53:44 GMT 2005


On 15 Nov 2005, at 12:11, Matthieu Moy wrote:

> Robey Pointer <robey at lag.net> writes:
>
>> I really think -r should only refer to revisions, not branches, just
>> to avoid this kind of confusion.  What's so terrible about 'bzr diff'
>> optionally taking two arguments? :)
>
> How do you
>
>   bzr diff -r revno:3:/path/to/branch..revno:3:/path/to/other/branch
>
> with only two arguments ?

I'm not sure.  But to me, one of the other alternatives suggested:

     bzr diff /path/to/branch;revno=3 /path/to/other/branch;revno=3

... is no uglier than abusing -r, and avoids confusing the meaning of  
-r, which is used in a lot of commands besides 'diff'.

(But both of them are pretty yucky looking, I think.)


> Almost any command taking a
> -r argument may want to access a remote revision. At least "cat" (and
> the "log" command mentionned earlier) make sense on a remote revison.

Why not

     bzr cat -r 2 http://example.com/bzr/project/include/happy.h

? :)

robey





More information about the bazaar mailing list