You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by ying lcs <yi...@gmail.com> on 2007/06/07 15:52:52 UTC

How to use svn diff command to diff 2 branches?

Hi,

I am trying to diff 2 branches in subversion like this:

# svn diff file:///srv/svn/repositories/snapshot/trunk
file:///srv/svn/repositories/test/tags/VERSION1_0_11
file:///srv/svn/repositories/test/tags/VERSION1_0_10

But I get an error like this:
svn: Not all required revisions are specified

Can you please tell me how to fix it?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: How to use svn diff command to diff 2 branches?

Posted by Hari Kodungallur <hk...@gmail.com>.
On 6/7/07, ying lcs <yi...@gmail.com> wrote:
>
> Hi,
>
> I am trying to diff 2 branches in subversion like this:
>
> # svn diff file:///srv/svn/repositories/snapshot/trunk
> file:///srv/svn/repositories/test/tags/VERSION1_0_11
> file:///srv/svn/repositories/test/tags/VERSION1_0_10
>
> But I get an error like this:
> svn: Not all required revisions are specified
>
> Can you please tell me how to fix it?
>

Assuming you want to diff between the two tags VERSION1_0_10 and
VERSION1_0_11, then you need to provide only those two arguments, not the
trunk, to the svn diff command.

# svn diff file:///srv/svn/repositories/test/tags/VERSION1_0_10
file:///srv/svn/repositories/test/tags/VERSION1_0_11

It will show the diff from version 1_0_10 to version 1_0_11.

[I do not think you can do a three-way diff using svn commands.]


regards,
-Hari Kodungallur