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

Re: [Subclipse-users] Rename Package refactoring causes "already under version control" error

From: Mark Phippard <markp_at_softlanding.com>
Date: 2006-07-06 02:19:14 CEST

bonawitz@gmail.com wrote on 07/05/2006 05:31:14 PM:

> (On Eclipse 3.2 Callisto, Subclipse 1.1.2)
>
> When I try to use the "Rename Package" refactoring (with the "Rename
> Subpackages" option enabled) in order to move a folder with several
> subfolders, the refactoring throws an exception (I get a dialog with
> "Undo"/"Abort", and the details "Problems encountered while moving
> resources."
>
> Structure of my Eclipse Project:
> + old
> + package1
> + Class1.java
> + package2
> + Class2.java
>
> Refactoring attempted: Rename package "old" to "updated," renaming the
> subpackages as well. Checking the SVN log, I see that add-N is being
> applied to the parent directory multiple times.
>
> add-N C:\workspace\Project\updated
> A C:/workspace/Project/updated
> move C:/workspace/Project/old/package1
C:/workspace/Project/updated/package1
> A C:/workspace/Project/updated/package1
> D C:/workspace/Project/old/package1/Class1.java
> D C:/workspace/Project/old/package1
> add-N C:\workspace\Project\updated
> svn: 'C:\workspace\Project\updated' already under version control
>
> This looks like it might be related to Daniel Serodio's issue from
> June 6, 2006 (copied below), but Mark Phippard wrote that that bug has
> been fixed and I should be in subclipse 1.1.2 (the version I'm using).
> I suspect that this is a similar but distinct issue.

I just did a huge amount of these refactorings and it all worked OK. I
did not look at the Console too closely, but the Eclipse UI did not give
me any errors. Nonetheless, when I get some time, I will try some simple
tests like you indicated above.

If you have any older versions of Subclipse around, it could not hurt to
delete them from the features and plugins folders and restart Eclipse with
-clean option. Of course if this was a fresh install of everything, do
not bother.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subclipse.tigris.org
For additional commands, e-mail: users-help@subclipse.tigris.org
Received on Thu Jul 6 02:19:29 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.