How to get the diff between two arbitrary remote revisions?

Martin Pool mbp at sourcefrog.net
Wed Nov 16 05:38:27 GMT 2005


On 15 Nov 2005, Matthieu Moy <Matthieu.Moy at imag.fr> 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'd like either
 
  bzr diff -r 3 /path/to/branch -r 3 /path/to/other/branch

or

  bzr diff -r 3 --branch /path/to/branch -r 3 --branch /path/to/other/branch

The first if you accept it's a reasonable heuristic that giving the
root of two branches indicates a wish to compare across the branches,
not along the history of two files.

I don't really mind -r taking a branch name for obscure cases, where it
is used to look up a revision id that's then used locally, but to
generally require it is ugly.

> The big advantage of a solution using one identifier to identify a
> revision (whether it's revno:X:path or path;revno=X) is that this
> identifier can be used in many places (cut-and-paste-able from a mail,
> clickable on a web interface, ...) other than the command-line.

There is value in such a thing, but I'm not sure it's the right thing to
use on the command line.

-- 
Martin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051116/3b16a987/attachment.pgp 


More information about the bazaar mailing list