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

Re: diff between working copy dirs?

From: Les Mikesell <lesmikesell_at_gmail.com>
Date: Tue, 13 Oct 2009 10:02:26 -0500

Mark J. Reed wrote:
> This seems like it should be a FAQ, but while I saw a few related posts
> in the archives, there didn't seem to be anything definitive. Apologies
> if I just missed it.
> Anyway, I'm trying to do e.g.
> svn diff branches/my_branch trunk
> But it always reports no differences (and no error message, either).
> Whereas if I try
> svn diff --old=branches/my_branch --new=trunk
> I get an error message about a usage that is "not yet supported".
> It seems that my options are limited to either using full repository
> URLs for both targets, or using a local shell diff (with appropriate
> flags to exclude the contents of the .svn directories). Is that correct?

With the --old=... --new=... syntax you should be able to specify a
local directory in the working copy (like '.') for one argument and a
url for the other.

> If so, what's the rationale for the limitation - potential confusion
> between the contents of the working directories and the contents of the
> corresponding repository URLs?

It's probably unusual to have checked out the whole tree of
trunk/branches into the same working copy. Normally you'd just have one
instance that you might want to diff against other repository versions.

> It just seems like the sort of thing that "should work", but of course
> that's easy to say from the perspective of someone who hasn't tried to
> implement it.

If you are doing a strictly local diff, why use the svn tool at all?

   Les Mikesell
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-10-13 23:31:19 CEST

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