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

Re: diffing

From: John Peacock <jpeacock_at_rowman.com>
Date: 2004-05-25 15:56:00 CEST

Lukas Ruf wrote:
> I thought I could make use of the presumed features to compare tags
> which are handled as 'svn copy's. In many cases, I intended to use
> this feature to easily get the difference between tags. But, if I
> correctly understood, I have to run
> svn checkout $REPOS/tags/version1
> svn checkout $REPOS/tags/version2
> diff -r --exclude='.svn' version1 version2

Did you read the 'svn help diff' that Sussman suggested?

        3. diff OLD-URL[@OLDREV] NEW-URL[@NEWREV]

It is always possible to do diffs between any two URL's in the repository. What
Sussman was saying (if I can paraphrase) is that svn does not handle two local
paths (since you have a perfectly good GNU diff that can do that).

So you can do this:

        svn diff $REPOS/tags/version1 $REPOS/tags/version2

as long as $REPOS is svn://, file://, or http:// but not a path in the local



John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4501 Forbes Boulevard
Suite H
Lanham, MD  20706
301-459-3366 x.5010
fax 301-429-5748
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 25 15:56:20 2004

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.