[Patch] Support for multiple revisions for diff command
Garrett Rooney
rooneg at electricjellyfish.net
Wed May 11 02:56:06 BST 2005
Johan Rydberg wrote:
> John A Meinel <john at arbash-meinel.com> writes:
>
>
>>>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.
>
>
> Using -r and -r2, besides looking horrible, must also break the short
> option patch.
>
> Anyway, I vote for the @-case. e.g., bzr diff foo at X bar at Y
I'd recommend supporting both foo at X bar at Y and -r X:Y, since both are
useful in different cases. The common case for my is comparing two
versions of the same tree, thus making -r X:Y useful, but occiasionally
you might want to compare two versions of different trees, requiring the
use of foo at X bar at Y format.
More information about the bazaar
mailing list