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

Re: [Subclipse-users] Cannot switch if project not in workspace

From: Brad Dompe <bdompe_at_hotmail.com>
Date: 2006-05-19 18:26:40 CEST

I logged into the solaris box and from <home>/dev entered:
   svn checkout -r HEAD svn://myserver/myapp/trunk myapp
If I do that, the command-line switch works:
  svn switch svn://myserver/myapp/branches/release55 myapp -rHEAD

The Subclipse switch from Eclipse fails with the error previously mentioned.

If I check out the project using Subclipse, then try to do a command-line
switch, I get the same error from the command-line Only if I checkout to
<home>\dev\myapp though. If I checkout using subclipse to my default
workspace, <home>\workspace\myapp, the command-line switch works.

It seems to be an issue with the workspace directory and subclipse.
<home>\dev and <home>\workspace look almost identical. They've both owned by
me, with dev having drwxrwxr-x and workspace having drwxr-xr-x. However, if
I go into Subclipse and checkout to F:\dev I cannot switch using either the
command-line or Subclipse. If I go into Subclipse and checkout to
F:\workspace, both the command-line switch and Subclipse work.

If I cut Subclipse out of the picture, I can checkout and switch using any
combination of Tortoise or the command-line. Once Subclipse is involved, it
only works if I'm in the workspace folder.

If it helps, it is a branch with several directory deletions. I think it
correctly switches the one directory which is supposed to remain. However,
the directories it is supposed to remove remain and if I do a svn status
they are '?'. When I try to switch back to the trunk, I get:
svn: Failed to add directory 'myapp/com/myapp/dao': object of the same name
already exists

The steps I'm following are. Window->Open Perspective->Other->SVN Repository
Exploring. Expand the repository, right-click on trunk, choose Checkout...
For F:\dev where it fails, I:
- Checkout...using New Project Wizard, Finish
- Choose Java Project, Next.
- Call it myapp, and select 'Create Project from Existing Source' (sounds
incorrect since I have no existing source, but the only other option is 'in
workspace', which I don't want.
- I browse to F:\dev, click New Folder, enter 'myapp', then Ok.
- Click Next, then Finish.
- Checkout succeeds, shows no differences, but I cannot switch from either
the command-line or Subclipse.

For F:\workspace, where it works, I:
- Checkout as a project in the workspace, change the name to myapp, and hit
Next.
- I leave the default workspace selected and hit Finish.
- checkout succeeds, shows no difference, and I can switch from
command-line, Subclipse, and Tortoise.

From: Mark Phippard <markp@softlanding.com>
To: users@subclipse.tigris.org
CC: bdompe@hotmail.com
Subject: Re: [Subclipse-users] Cannot switch if project not in workspace
Date: Fri, 19 May 2006 11:29:05 -0400

"Brad Dompe" <bdompe@hotmail.com> wrote on 05/19/2006 11:15:23 AM:

> It seems like switch only works if I create the project in my workspace.
  If
> it exists anywhere else, I can do all commands but switch. I also tried

> doing a commit in each scenario, to verify that there are no modified or

> unversioned files.
>
> This seems like a bug, but any suggestions would be greatly appreciated.

This seems like it would have to be some sort of Subversion issue,
although I do not know why TortoiseSVN would work. Try issuing an svn
switch command line statement that looks about the same as what we show in
the Console view.

I have tried to recreate the problem using two Windows drives and cannot.

As to the procedure you use, if the projects are not already on your F:\
drive, you might as well use the Subclipse checkout to populate the F:\
drive. If they already exist, then go ahead and use the import.

The one thing you might want to avoid doing is using the svn command line
client on Solaris. This is because it will have a different value for
svn:eol-style=native then the Windows client will have. If you do not use
that property, then no issue.

Mark

_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. and SoftLanding Europe Plc by IBM
Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Fri May 19 18:28:27 2006

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

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