Bug 24263 - [resources] CVS totally confused after copying twice
Summary: [resources] CVS totally confused after copying twice
Status: RESOLVED DUPLICATE of bug 109166
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Resources (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Platform-Resources-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-10-01 09:30 EDT by Dani Megert CLA
Modified: 2005-09-30 14:16 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dani Megert CLA 2002-10-01 09:30:55 EDT
Build 20020924

1. Create a workspace which is connected to two different CVS repos:
    :extssh:<yourname>@dev.eclipse.org:/home/eclipse
    :extssh:<yourname>@zrhcvs1.zrh.oti.com:/home/cvs/eclipse
2. Add one project from each repository:
     com.oti.zrh.eclipse.tools from zrhcvs1.zrh.oti.com
     org.eclipse.compare from dev.eclipse.org
3. In the Package Explorer copy the source folder 'src' from    
   com.oti.zrh.eclipse.tools to org.eclipse.compare
4. Repeat 3.
5. Press Yes on the dialog.
==> BAD: the CVS folders are copied along with the source folder!
    Note: you only see this outside Eclipse
6. In org.eclipse.tools/src open the properties for package 
   com.oti.zrh.eclipse.tools.internal.docTools
==> CVS thinks it still belongs to the zrh repository. This leaves
org.eclipse.compare in a total mess making further Team actions totaly
unpredictable.

NOTE: Same steps work within navigator. Assume the bug is in the hierarchy of
JdtCopy action.
Comment 1 Adam Kiezun CLA 2002-11-13 12:25:04 EST
we simply call
folder.copy(path, false, new SubProgressMonitor(pm, 1));

where folder is the 'src' folder and path is the path to org.eclipse.compare
copying or not-copying cvs folders is not under ui control
Comment 2 DJ Houghton CLA 2002-11-13 19:12:11 EST
IResource.copy copies all children if the resource is a folder or project. 
This includes CVS folders (which are team private members).

It would require new API if we wanted to have a #copy which ignored team 
private resources.

Adding Jeem and KM to CC for comment on behaviour of team private resources 
w.r.t. copy.
Comment 3 Kevin McGuire CLA 2003-02-17 11:22:04 EST
This is a known issue and is basically the same as the problem we discussed 
before with the provider persistent property being copied.
Comment 4 Kevin Haaland CLA 2004-06-11 14:34:45 EDT
Lowering severity. Assess after 3.0
Comment 5 John Arthorne CLA 2005-09-30 14:16:33 EDT
I'm marking this as a duplicate of a recent request for a repository copy hook,
since that is what CVS would need to implement this.

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