Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2006-08-16 19:55:28 +0000
committerMichael Valenta2006-08-16 19:55:28 +0000
commitd33159700efaa1bee997b4955647da8b2ce31ba7 (patch)
tree57653260349425af467acaa53748a6fa9d53de1e
parentb215bf36f1d8e29a74b5f62cef1e610b3632c3e7 (diff)
downloadeclipse.platform.team-d33159700efaa1bee997b4955647da8b2ce31ba7.tar.gz
eclipse.platform.team-d33159700efaa1bee997b4955647da8b2ce31ba7.tar.xz
eclipse.platform.team-d33159700efaa1bee997b4955647da8b2ce31ba7.zip
Bug 149008 [Modules] Cannot use cvs to sync or update (EmptyDir problem?)
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFolderSandbox.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFolderSandbox.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFolderSandbox.java
index d09b8e932..37799ed0a 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFolderSandbox.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFolderSandbox.java
@@ -46,7 +46,7 @@ public class RemoteFolderSandbox extends RemoteFolder {
if (e.getStatus().getCode() == CHILD_DOES_NOT_EXIST) {
IPath path = new Path(null, name);
String fileName = path.lastSegment();
- RemoteFolderSandbox parent = getFolder(path);
+ RemoteFolderSandbox parent = getParentFolder(path);
RemoteFile file = new RemoteFile(parent, Update.STATE_NONE, fileName, null, null, getTag());
parent.addChild(file);
return file;
@@ -63,7 +63,7 @@ public class RemoteFolderSandbox extends RemoteFolder {
setChildren(newChildren);
}
- private RemoteFolderSandbox getFolder(IPath path) throws CVSException {
+ private RemoteFolderSandbox getParentFolder(IPath path) throws CVSException {
IPath parentPath = path.removeLastSegments(1);
String parentString;
if (parentPath.isEmpty()) {
@@ -84,8 +84,8 @@ public class RemoteFolderSandbox extends RemoteFolder {
} catch (CVSException e) {
if (e.getStatus().getCode() == CHILD_DOES_NOT_EXIST) {
IPath path = new Path(null, name);
- RemoteFolderSandbox parent = getFolder(path);
- String repoPath = new Path(null, getRepositoryRelativePath()).append(name).removeTrailingSeparator().toString();
+ RemoteFolderSandbox parent = getParentFolder(path);
+ String repoPath = new Path(null, parent.getRepositoryRelativePath()).append(path.lastSegment()).removeTrailingSeparator().toString();
RemoteFolderSandbox folder = new RemoteFolderSandbox(parent, getRepository(), repoPath, getTag());
parent.addChild(folder);
return folder;

Back to the top