diff options
author | Michael Valenta | 2005-03-10 21:54:39 +0000 |
---|---|---|
committer | Michael Valenta | 2005-03-10 21:54:39 +0000 |
commit | 6f743e03901133469195c9490d463eb08f13c580 (patch) | |
tree | 47be9f49dcd6f28a41de51107f6a40ec41f082c0 /bundles/org.eclipse.team.cvs.core | |
parent | dbc830651a76a064625d81bc15106c25e8fcedbc (diff) | |
download | eclipse.platform.team-6f743e03901133469195c9490d463eb08f13c580.tar.gz eclipse.platform.team-6f743e03901133469195c9490d463eb08f13c580.tar.xz eclipse.platform.team-6f743e03901133469195c9490d463eb08f13c580.zip |
Bug 84689 Do not auto-share local repositories
Diffstat (limited to 'bundles/org.eclipse.team.cvs.core')
-rw-r--r-- | bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/CVSWorkspaceRoot.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/CVSWorkspaceRoot.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/CVSWorkspaceRoot.java index 89a8a9cbf..2eb0d1f81 100644 --- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/CVSWorkspaceRoot.java +++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/CVSWorkspaceRoot.java @@ -68,6 +68,12 @@ public class CVSWorkspaceRoot { if ( ! info.equals(folderInfo)) { throw new CVSException(new CVSStatus(CVSStatus.ERROR, Policy.bind("CVSProvider.infoMismatch", project.getName())));//$NON-NLS-1$ } + + // Ensure that the repository location format is supported + String root = info.getRoot(); + // This will try to create a repository location for the root. + // If it fails, an exception is thrown. + KnownRepositories.getInstance().getRepository(root); // Register the project with Team RepositoryProvider.map(project, CVSProviderPlugin.getTypeId()); |