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

Re: [Subclipse-users] Error performing "Move" refactoring to new package

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-06-06 22:35:39 CEST

Daniel Serodio <daniel.listas@xxx.com.br> wrote on 06/06/2006 04:10:36 PM:

> I selected 2 classes, and chose "Refactor > Move". Then, in the "Choose
> destination" dialog, I clicked on "Create Package...", and created a new
> package.
>
> When I clicked on Ok, to perform the refactoring, I got an error from
> Subclipse, because it tried to "add" the newly-created package twice.

Thanks for the easy to follow reproduction steps. I have reproduced and
fixed the problem and will include in the next releases of 1.1 and 1.0.

The problem was caused by a performance optimization we added to the "add"
routine where we took out a manual refresh of the svn status. The problem
in this scenario is that the svn status is not refreshed until the end if
the process so it does not recognize that the folder has already been
added to version control. I just had to add a status refresh into the
refactoring when it creates the folder.

As a workaround, if you create the package and add it to version control
prior to moving the classes, it will work fine.

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 Tue Jun 6 22:36:42 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.