[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

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

From: Hari Kodungallur <hkodungallur_at_gmail.com>
Date: 2007-06-07 21:21:43 CEST

On 6/7/07, ying lcs <yinglcs@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
Received on Thu Jun 7 21:22:11 2007

This is an archived mail posted to the Subversion Users mailing list.