Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2005-05-16 14:20:16 +0000
committerMichael Valenta2005-05-16 14:20:16 +0000
commit3dc1f656bff71a3846d46bd1bf998f4ac1c28a3a (patch)
tree52e9d369746694f6f9f09f9631991d3018cfc581
parent26c9a23b80cb856fca0c90bcc80bb847e31be0f1 (diff)
downloadeclipse.platform.team-3dc1f656bff71a3846d46bd1bf998f4ac1c28a3a.tar.gz
eclipse.platform.team-3dc1f656bff71a3846d46bd1bf998f4ac1c28a3a.tar.xz
eclipse.platform.team-3dc1f656bff71a3846d46bd1bf998f4ac1c28a3a.zip
Bug 78236 Can't check out a folder if there is a deleted folder whose name differs only in capitalization
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/TemplateHandler.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/TemplateHandler.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/TemplateHandler.java
index 8bb418a33..8f7b9f2f9 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/TemplateHandler.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/client/TemplateHandler.java
@@ -41,10 +41,12 @@ public class TemplateHandler extends ResponseHandler {
*/
public void handle(Session session, String localDir, IProgressMonitor monitor) throws CVSException {
session.readLine(); /* read the remote dir which is not needed */
- ICVSFolder localFolder = getExistingFolder(session, localDir);
+ // Only read the template file if the container exists.
+ // This is OK as we only use the template from the project folder which must exist
+ ICVSFolder localFolder = session.getLocalRoot().getFolder(localDir);
IContainer container = (IContainer)localFolder.getIResource();
ICVSStorage templateFile = null;
- if (container != null) {
+ if (container != null && container.exists()) {
try {
templateFile = CVSWorkspaceRoot.getCVSFileFor(SyncFileWriter.getTemplateFile(container));
} catch (CVSException e) {

Back to the top