Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 336692

Summary: commit fails if a package was renamed/moved
Product: [Technology] Subversive Reporter: Christian Schwarz <chriss.dev>
Component: CoreAssignee: Igor Burilo <igor.burilo>
Status: CLOSED MOVED QA Contact:
Severity: normal    
Priority: P3 CC: a.gurov, chriss.dev, vladnc
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Commit Error Message none

Description Christian Schwarz CLA 2011-02-09 05:36:30 EST
Build Identifier: 20100917-0705

The commit fails after a package rename/move. Example :rename package "a.b.c" to "a.x.b.c".

I am using SVN Connector: Native JavaHL 1.6.6 r40053 (for SVN 1.6.6, win32 platform only)

Maybe this Bug is related to:
 * #251168 Refactoring Package does not delete original, but does add new Package to svn.
 * #243638 SVN: Rename of file fails when only difference is character case
 * #213991 Subversive SVN causing file renames to be reported as removal+addition in ResourceChangeEvents




Reproducible: Always

Steps to Reproduce:
1. update the project to get the latest version from the repository
2. rename package a.b.c to package a.b.x.c
3. try to commit
4. it fails with the following message (package & class name changed):

Some of selected resources were not committed.
Illegal target for the requested operation
svn: Commit failed (details follow):
svn: Entry for 'C:\XXX\workspace\test.project\src\a\b\c\Test.java' is marked as 'copied' but is not itself scheduled
for addition.  Perhaps you're committing a target that is
inside an unversioned (or not-yet-versioned) directory?
Comment 1 Christian Schwarz CLA 2011-02-09 05:40:19 EST
Created attachment 188577 [details]
Commit Error Message
Comment 2 Christian Schwarz CLA 2011-02-09 05:44:33 EST
I've testet it with a new project but was unable to reproduce it. It seems that the bug occures first time after serveral committs and/or updates or in larger projects.
Comment 3 Christian Schwarz CLA 2011-02-09 06:00:53 EST
Workaround to rename a.b.c to a.b.x.c:

1. update the project
2. rename the package from a.b.c to a.b.x
3. commit (after this the empty package a.b.c is left in the project and marked as deleted)
4. rename the package a.b.x to a.b.x.c
5. commit (after this the empty package a.b.c will disappear)
6. voila -> a.b.c is now a.b.x.c
Comment 4 Eclipse Webmaster CLA 2023-02-13 10:56:00 EST
This issue has been migrated to https://gitlab.eclipse.org/eclipse/subversive/subversive/-/issues/80.