[Patch] Support for multiple revisions for diff command

Michael Ellerman michael+bazaar at ellerman.id.au
Wed May 11 01:45:16 BST 2005

On Wed, 11 May 2005 10:29, John A Meinel wrote:
> > It's a little counter intertuitive (perhaps) but to get the diff for
> > revno 440 you have to run 'bzr diff -r 439 -r2 440'.
> Why not use one of the other syntaxes. Such as
> bzr diff ./@439 ./@440
> bzr diff @439 @440
> (mabye bzr diff 439 440 but these could be filenames)
> bzr diff -r 439:440
> etc.

Well maybe. I don't really think any of those syntaxes are better than just 
specifying two revision numbers with regular options. Bzr is supposed to be a 
crack-free zone remember ;D

Re a "show-changeset" command (your other mail). I've got a patch to do rev 
numbers for log messages, but I'm not sure I like it.

To get the revision message for revno 440 you specify 'bzr log -r 440 -r2 
441'. But to get the diff that is associated with that comment you need to do 
'bzr diff -r 439 -r2 440', which when you think about it makes sense in terms 
of revisions, but makes your head hurt if you're thinking in terms of 

That's a long way of saying I might just implement a 'show-changeset' command 
that fudges the numbers for you so that it does the right thing for someone 
thinking in terms of changesets.


Michael Ellerman
IBM OzLabs

email: michael:ellerman.id.au
inmsg: mpe:jabber.org
wwweb: http://michael.ellerman.id.au
phone: +61 2 6212 1183 (tie line 70 21183)

We do not inherit the earth from our ancestors,
we borrow it from our children. - S.M.A.R.T Person

More information about the bazaar mailing list