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

Re: TortoiseSVN with Eclipse

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 25 Nov 2008 21:22:17 -0500

On Tue, Nov 25, 2008 at 18:54, discoguy77 <discoguy77_at_gmail.com> wrote:
> This is informational, and not reporting a bug - it's more of a
> request for documentation.
>
> I've been using TortoiseSVN for about a year, but just started using
> it for an Eclipse project. (Of course) Eclipse copies files from the /
> src directory to the /bin directory, I just never thought about it.

Why would you not use Subclipse to do all your SVN work from right
inside Eclipse? I think there's a way to prevent this from happening
if you have it installed but I don't recall. I know I don't have this
problem with Eclipse/Subclipse on my system at work.

> This manifests itself somewhat strangely. I have the /bin folder
> ignored globally in the TortoiseSVN settings. However, TortoiseSVN
> sees that the /bin/.svn/ exists, and so it marks the /bin folder as
> "modified" instead of "ignored", as well as the parent of /bin (i.e. /
> ProjectFoo/). If I "check for modifications", it shows that there are
> none, and there is (correctly) nothing to commit.

Any directory with a .svn directory inside it is assumed to be a WC.
If you use the command-line client, I think you'll see the same
behavior.

> An interesting sidenote is that it gave me the option to do a "svn
> delete" on the files in the /bin folder, even though they were never
> added to .svn. The result was that the matching files in /src were
> deleted instead, since that's where the metadata in /bin/.svn/ pointed
> to (since the metadata had been copied by Eclipse). It's probably not
> worth the development effort, but perhaps TortoiseSVN should have a
> check for the validity of the information in the .svn/ folders instead
> of using them blindly. That is, "Hey, this metadata is located in /
> bin/.svn/ but points to /src/, therefore /bin/ is obstructed".

Except you can freely rename any WC directory without telling Subversion.

This really is a problem with your Eclipse setup, not anything
specific to Subversion or TSVN.

> Here's a blog post showing how to exclude the files from an Eclipse
> project: http://francisoud.blogspot.com/2008/07/eclipse-classpath-ad-subversion.html
>
> Long story short, I think it would be a great idea to add something
> either in the manual, FAQ, or both, which says: "Hey! You! Make sure
> your IDE doesn't copy the .svn/ folders to your output directory!
> Results are undefined if there's garbage data in .svn/ folders, crazy
> crap might happen!".

I think this is covered by a few SVN resources (and I'm almost certain
it's been brought up on several times on the SVN mailing list), but I
don't have any URLs handy.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-11-26 03:22:54 CET

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

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