Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-02-25 16:06:48 -0500
committerJean Michel-Lemieux2002-02-25 16:06:48 -0500
commit1d266dcc9d19c49f1aab169a7eda2894bb850718 (patch)
treeaf017cee9f02f6ed37fe13a04ef5703c7f6c37a5
parentf18fffdbe2989225b9667c5544cde90461caee1a (diff)
downloadeclipse.platform.team-1d266dcc9d19c49f1aab169a7eda2894bb850718.tar.gz
eclipse.platform.team-1d266dcc9d19c49f1aab169a7eda2894bb850718.tar.xz
eclipse.platform.team-1d266dcc9d19c49f1aab169a7eda2894bb850718.zip
Bug 9947: Checkout deletes project!
Bug 10157: Checkout doesn't delete local files which were deleted from
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSProvider.java11
1 files changed, 10 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSProvider.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSProvider.java
index 306b1c5fc..a99d2a8f5 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSProvider.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSProvider.java
@@ -197,7 +197,16 @@ public class CVSProvider implements ICVSProvider {
if(!project.isOpen()) {
project.open(Policy.subMonitorFor(pm, 10));
}
- project.delete(true, true, Policy.subMonitorFor(pm, 90));
+ // XXX: temporary code to support creating a java project for sources in CVS
+ // should be removed once nature support is added to the UI.
+ // delete children, keep project
+ pm.subTask("Srubbing local project...");
+ IResource[] children = project.members();
+ IProgressMonitor subMonitor = Policy.subMonitorFor(pm, 90);
+ subMonitor.beginTask(null, children.length * 100);
+ for (int j = 0; j < children.length; j++) {
+ children[j].delete(true /*force*/, Policy.subMonitorFor(subMonitor, 100));
+ }
}
checkout(resource.getRepository(), project, resource.getRepositoryRelativePath(), resource.getTag(), Policy.subMonitorFor(pm, 900));

Back to the top