How to get the diff between two arbitrary remote revisions?

Matthieu Moy Matthieu.Moy at imag.fr
Wed Nov 16 08:07:51 GMT 2005


Martin Pool <mbp at sourcefrog.net> writes:

> I'd like either
>  
>   bzr diff -r 3 /path/to/branch -r 3 /path/to/other/branch

The difference between

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

and

  bzr diff -r 3 /path/to/branch -r 42 \
    ./I/want/the/diff/for/this/precise/file

(to mean "diff between revno 3 of /path/to/branch and revision 42 in
the current branch) will become a bit fuzzy then.

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

That's not my prefered one, but it seems more acceptable. If you
provide a 1-letter shortcut for --branch (say, -b), it's not really
longer to type.

If you go for this option and reject the revno:N:path proposal, then I
think branch:path should be removed from the namespace.

(then it would become just "--branch /path/to/branch")

-- 
Matthieu




More information about the bazaar mailing list