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

Bug 298522

Summary: Team commit adds copied file to wrong CVS directory on CVS server
Product: [Eclipse Project] Platform Reporter: Stefan <stesta65>
Component: CVSAssignee: platform-cvs-inbox <platform-cvs-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: critical    
Priority: P3 CC: pawel.pogorzelski1
Version: 3.4.2   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:
Attachments:
Description Flags
Removed none

Description Stefan CLA 2009-12-25 08:13:07 EST
Build Identifier: M20080221-1800

Hi,
I moved some files from one folder to another folder in the Eclipse workbench (Package explorer). By doing copy and paste. Deleted the file in the src structure. Simple move of file operation.
I Did a team commit of the moved files to CVS.

To my surprise, In my local Eclipse directory structure the file seem to be in the right (expected) directory. But on the CVS server it resides in another CVS directory. (Right click on dir and Properties / CVS reveals this). Also checked on CVS server.
If I do a Team update the error remains.


E.g. after Team commit. file resides in dir OH/subdir1/subdir2/a.jsp in the package explorer.
But on the CVS server it resides in BA/subdir1/subdir2/a.jsp

I would like to add a picture that shows you how it looks.

I searched your bug DB but didn't find it.

Thanks & Regards


Reproducible: Sometimes

Steps to Reproduce:
1. You have a src directory structure that is version handled through CVS. Create 2 new directory structures. e.g. named BA, OH on the same level as the src structure (project root). Add some 3 or 4 new directories to both BA and OH. Exactly the same names etc.
2. Copy a file from the existing src structure to BA and OH in the package explorer(keep same file name). Right click, copy and then paste in the file. Delete the file in the src structure. (Preferably copy many files this way to the same structures in OH and BA.)
3.Do a Team (CVS) commit of all the three structures. Right click the file in the OH structure. Properties / CVS. It now says it is located in the BA structure on the CVS server!
Comment 1 Stefan CLA 2009-12-25 08:16:54 EST
Created attachment 155040 [details]
Removed

Note the admin dir under OH - it resides in BA CVS dir structure after Team commit.
Comment 2 Frederic Fusier CLA 2009-12-25 09:36:31 EST
Move to Platform/CVS
Comment 3 Stefan CLA 2009-12-25 10:57:18 EST
Thanks for showing me the right place to look.
Check also 206442 it could be related?
It is possible that I created the structure first in BA and copied it and pasted it into the OH structure.

If the CVS dir's followed it could explain it.

Thanks
Comment 4 Pawel Pogorzelski CLA 2010-01-04 05:03:50 EST
I tried to reproduce it using 3.3 and 3.4.1 with no success. Not sure if configuration of your installation or some subtle difference in steps makes the difference.

Anyway, it looks the same as bug 206442. Let's track them in one place.

*** This bug has been marked as a duplicate of bug 206442 ***
Comment 5 Stefan CLA 2010-01-04 07:03:24 EST
Comment on attachment 155040 [details]
Removed

Removed