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

[Subclipse-users] Branch with Switch corrupts workspace

From: Chris Feldhacker <feldhacker.chris_at_principal.com>
Date: Mon, 17 Aug 2009 08:35:40 -0700 (PDT)

Using Subclipse 1.6.5 with JavaHL 1.6.4 (r38063) against a 1.6.3 server using HTTPS. (With Rational Application Developer v7.5.3 on Windows XP, which is based on Eclipse 3.4.2)

My application trunk (/svn/Playground/Exa​mpleApplication/trun​k/) contains 4 Eclipse projects:
Example
ExampleEJB
ExampleJava
ExampleWeb

...which I checked-out into my workspace.
I then selected all 4 projects, right-clicked, Team --> Branch/Tag, and entered the path to ".../ExampleApp​lication/branches/FeatureB​" and told it to create an intermediate folders that did not exist, copied from HEAD, I then selected the option to "Switch to new branch/tag".

The result is that the branch (and contents) are properly created in the repository. However, the projects in the workspace become corrupt -- essentially, each project appears as though it contains a nested copy of all four projects that were selected.

(If I perform the same steps but don't choose the "Switch to new branch/tag" option, then everything works fine. I can then perform a separate step to switch to the new branch and it still works fine.)

I can provide screenshots and full console logs if needed, but what I think the problem boils down to is this: When the "Switch to new branch/tag" option is selected, the following commands show in the console log:

copy -rHEAD https://svn.pfg.com:8400/svn/Playground/ExampleApplication/trunk/Example https://svn.pfg.com:8400/svn/Playground/ExampleApplication/trunk/ExampleEJB https://svn.pfg.com:8400/svn/Playground/ExampleApplication/trunk/ExampleJava https://svn.pfg.com:8400/svn/Playground/ExampleApplication/trunk/ExampleWeb https://svn.pfg.com:8400/svn/Playground/ExampleApplication/branches/FeatureB
switch https://svn.pfg.com:8400/svn/Playground/ExampleApplication/branches/FeatureB C:/Workspaces/Subversion753/Example -r HEAD --force
switch https://svn.pfg.com:8400/svn/Playground/ExampleApplication/branches/FeatureB C:/Workspaces/Subversion753/ExampleEJB -r HEAD --force
switch https://svn.pfg.com:8400/svn/Playground/ExampleApplication/branches/FeatureB C:/Workspaces/Subversion753/ExampleJava -r HEAD --force
switch https://svn.pfg.com:8400/svn/Playground/ExampleApplication/branches/FeatureB C:/Workspaces/Subversion753/ExampleWeb -r HEAD --force
(With lots of adds and deletes after each switch.)

However, if I do not select this option but instead perform a switch as a separate step, then the following commands are executed:
switch https://svn.pfg.com:8400/svn/Playground/ExampleApplication/branches/FeatureB/ExampleEJB C:/Workspaces/Subversion753/ExampleEJB -r HEAD --depth=infinity --force
switch https://svn.pfg.com:8400/svn/Playground/ExampleApplication/branches/FeatureB/ExampleJava C:/Workspaces/Subversion753/ExampleJava -r HEAD --depth=infinity --force
switch https://svn.pfg.com:8400/svn/Playground/ExampleApplication/branches/FeatureB/ExampleWeb C:/Workspaces/Subversion753/ExampleWeb -r HEAD --depth=infinity --force
switch https://svn.pfg.com:8400/svn/Playground/ExampleApplication/branches/FeatureB/Example C:/Workspaces/Subversion753/Example -r HEAD --depth=infinity --force

So, it seems choosing the "Switch to new branch/tag" option causes a switch command to be executed that does NOT have the project name appended after the branch name.
Can anyone confirm this to be a defect?

Thanks!!!

------------------------------------------------------
http://subclipse.tigris.org/ds/viewMessage.do?dsForumId=1047&dsMessageId=2384409

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subclipse.tigris.org].
Received on 2009-08-17 17:35:50 CEST

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.