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

Re: svn diff, svn merge, and vendor branches (long)

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2002-12-09 21:08:28 CET

On Mon, 2002-12-09 at 14:33, Eric Gillespie wrote:
> > Second -- Eric's original bug. He ran 'svn diff' on two unrelated
> > file URLs.

> I'm confused that you see this as a separate issue. Maybe it's
> just because i don't understand the implementation.

It's an artifact of the implementation.

For most svn operations, if you ask it to operate on a file, svn will
decompose that into an "anchor" of the parent directory and a "target"
of the filename. This flows from the management of working directories;
for instance, if you ask svn to check out a file, it doesn't just create
the file; it creates a working directory with the file inside.
Similarly, if you say "svn diff path/to/file", svn needs to look in
path/to/.svn for the text-base and other relevant information.

For a diff between two file-URLs, this decomposition doesn't really make
sense (there's no working-copy admin information to look at), so special
handling is required.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Dec 9 21:09:13 2002

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