diff options
author | Michael Valenta | 2002-09-27 13:27:40 +0000 |
---|---|---|
committer | Michael Valenta | 2002-09-27 13:27:40 +0000 |
commit | 5d618f99be3a4fcf796ee55dce0d0e1c24ffe238 (patch) | |
tree | 287cc3ede43be17020875ed4a4841471e8b4745d | |
parent | 7c28a7f87adad5b001cc7b3dd84ba42963f9078c (diff) | |
download | eclipse.platform.team-5d618f99be3a4fcf796ee55dce0d0e1c24ffe238.tar.gz eclipse.platform.team-5d618f99be3a4fcf796ee55dce0d0e1c24ffe238.tar.xz eclipse.platform.team-5d618f99be3a4fcf796ee55dce0d0e1c24ffe238.zip |
19692: [CVS CVSNT] Eclipse should detect use of a repository prefix
2 files changed, 11 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java index 580fdf91f..4d001019c 100644 --- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java +++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/connection/CVSRepositoryLocation.java @@ -465,6 +465,16 @@ public class CVSRepositoryLocation extends PlatformObject implements ICVSReposit CVSProviderPlugin.log(status); } } + if (getServerPlatform() == CVSNT_SERVER) { + // check for the use of a repository prefix + if (getRootDirectory().startsWith(Session.SERVER_SEPARATOR)) { + // A prefix is in use. Log a warning + CVSProviderPlugin.log(new Status(IStatus.WARNING, CVSProviderPlugin.ID, 0, + Policy.bind("CVSRepositoryLocation.cvsntPrefix", getLocation()), null)); //$NON-NLS-1$ + throw new CVSAuthenticationException(new Status(IStatus.WARNING, CVSProviderPlugin.ID, 0, + Policy.bind("CVSRepositoryLocation.cvsntPrefix", getLocation()), null)); + } + } } }, monitor); } catch (CVSException e) { diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/messages.properties b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/messages.properties index de5d92738..4e777c360 100644 --- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/messages.properties +++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/messages.properties @@ -202,6 +202,7 @@ CVSRepositoryLocation.errorCaching=Error occurred while saving password for {0} CVSRepositoryLocation.errorFlushing=Error occurred while flushing password for {0} CVSRepositoryLocation.openingConnection=Opening connection to {0} CVSRepositoryLocation.usernameRequired=A username is required to make a connection +CVSRepositoryLocation.cvsntPrefix=CVSNT repository ''{0}'' is configured to use a repository prefix. However, CVSNT does not always properly communicate resource paths in this mode resulting in the failure of some specialized Eclipse CVS operations. The use of a repository prefix should be disable if the full functionality of the Eclipse CVS client is desired ProjectDescriptionContentHandler.xml=Error parsing project description file |