Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 25521 - Copy in Package Explorer should not copy CVS files
Summary: Copy in Package Explorer should not copy CVS files
Status: RESOLVED DUPLICATE of bug 24156
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-29 19:33 EST by Andrew Cornwall CLA
Modified: 2002-10-30 09:21 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Cornwall CLA 2002-10-29 19:33:19 EST
When I copy a folder in the Package Explorer, the associated CVS files get 
copied as well. This leads to problems with CVS in the future.

Steps to reproduce:

1. Create a Java project TestCVS
2. Select "Properties" of the Java project.
3. Under the source tab, select "Use source folders contained in the project".
4. Delete the JRE_LIB from the project (don't know if this is necessary)
5. Create a folder foo.
6. Create a folder com under foo.
7. Create a folder oti under com.
8. Create a folder bar under oti.
9. Put the following class in the folder bar:
package com.oti.bar;
public class Foo {
}
10. Synchronize outgoing changes with CVS, and commit everything.
11. Now, create a folder copyfoo under TestCVS.
12. Select the folder com under foo, and press ^C.
13. Select the folder copyfoo and press ^V.
14. You now have two folder structures that look the same.
15. Now open an explorer on the Workspace directory, and look in 
TestCVS\copyfoo\com\CVS\Repository
16. Note that the Repository is TestCVS/foo/com, and not what it should be 
(TestCVS/copyfoo/com). This means the IDE will get out of sync with the 
repository, mistakenly telling you everything has been updated when it hasn't, 
and replacing the wrong files in the repository.
Comment 1 Adam Kiezun CLA 2002-10-30 06:23:25 EST
we use IResource::copy
not sure how we could cause that problem or make it disappear.
Comment 2 Sonia Dimitrov CLA 2002-10-30 09:21:52 EST

*** This bug has been marked as a duplicate of 24156 ***