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

[Subclipse-users] Problem renaming nested Java packages ("Entry already exists")

From: Michael Liddle <mike_at_liddle.net.nz>
Date: Sun, 28 Sep 2008 17:15:52 +1300

Hi there,

I am having a significant problem with Subclipse and package renaming
when at least four levels of package nesting exist.

It seems similar to the problem reported here:

http://subclipse.tigris.org/servlets/ReadMsg?list=users&msgNo=6870

But with deeper nesting (i.e. the above works fine for me, but the
following does not):

a---b---c---d---C1.java
| | | +---C2.java
| | |
| | +---C1.java
| | +---C2.java
| |
| +---e---C1.java
| +---C2.java
|
+---C1.java
+---C2.java

(Not that a.b doesn't have any child classes, I don't know if this is
important, the other classes, and the fact that each package has two of
them seems to be...)

So anyway, try to rename package a to x (WITH rename subpackages
SELECTED) and the following is out put in the SVN console:

add -N /mnt/data-profiler-linux/eclipse-ws/test/src/x
    A /mnt/data-profiler-linux/eclipse-ws/test/src/x
move /mnt/data-profiler-linux/eclipse-ws/test/src/a/ClassA.java
/mnt/data-profiler-linux/eclipse-ws/test/src/x/ClassA.java
    A /mnt/data-profiler-linux/eclipse-ws/test/src/x/ClassA.java
    D /mnt/data-profiler-linux/eclipse-ws/test/src/a/ClassA.java
move /mnt/data-profiler-linux/eclipse-ws/test/src/a/ClassB.java
/mnt/data-profiler-linux/eclipse-ws/test/src/x/ClassB.java
    A /mnt/data-profiler-linux/eclipse-ws/test/src/x/ClassB.java
    D /mnt/data-profiler-linux/eclipse-ws/test/src/a/ClassB.java
add -N /mnt/data-profiler-linux/eclipse-ws/test/src/x/b
    A /mnt/data-profiler-linux/eclipse-ws/test/src/x/b
add -N /mnt/data-profiler-linux/eclipse-ws/test/src/x/b/c
    A /mnt/data-profiler-linux/eclipse-ws/test/src/x/b/c
move /mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/ClassA.java
/mnt/data-profiler-linux/eclipse-ws/test/src/x/b/c/ClassA.java
    A /mnt/data-profiler-linux/eclipse-ws/test/src/x/b/c/ClassA.java
    D /mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/ClassA.java
move /mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/ClassB.java
/mnt/data-profiler-linux/eclipse-ws/test/src/x/b/c/ClassB.java
    A /mnt/data-profiler-linux/eclipse-ws/test/src/x/b/c/ClassB.java
    D /mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/ClassB.java
move /mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/d
/mnt/data-profiler-linux/eclipse-ws/test/src/x/b/c/d
    A /mnt/data-profiler-linux/eclipse-ws/test/src/x/b/c/d
    D
/mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/d/ClassA.java
    D
/mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/d/ClassB.java
    D /mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/d
delete --force /mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/d
    D
/mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/d/ClassA.java
    D
/mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/d/ClassB.java
    D /mnt/data-profiler-linux/eclipse-ws/test/src/a/b/c/d
add -N /mnt/data-profiler-linux/eclipse-ws/test/src/x/b
    Entry already exists
svn: '/mnt/data-profiler-linux/eclipse-ws/test/src/x/b' is already under
version control

I.e. clearly x.b has already been added earlier. It should not be added
again.

Also, a dialog appears offering "Undo" or "Abort". Undo appears to do
nothing. I.e. it's the same as "Abort", leaving the workspace in an
inconsistent state. In particular, the packages shown as modified in the
above console output are moved, but nothing following those are.

Anyone able to provide any help?

Thanks,
Mike.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subclipse.tigris.org
For additional commands, e-mail: users-help_at_subclipse.tigris.org
Received on 2008-09-28 06:16:08 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.