Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2002-11-21 14:33:13 +0000
committerMichael Valenta2002-11-21 14:33:13 +0000
commitb4c19c599da1abb516bbe809d0f51619678b1518 (patch)
treebaa271db2b7346ae290b05442366295927f9696f /bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/syncinfo/BaserevInfo.java
parent3eb8a576856b27ae801cf18e417e5c3365547373 (diff)
downloadeclipse.platform.team-b4c19c599da1abb516bbe809d0f51619678b1518.tar.gz
eclipse.platform.team-b4c19c599da1abb516bbe809d0f51619678b1518.tar.xz
eclipse.platform.team-b4c19c599da1abb516bbe809d0f51619678b1518.zip
26851: Performance - synchronize way to slow
26717: unable to fetch files from CVS whose label include '/'
Diffstat (limited to 'bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/syncinfo/BaserevInfo.java')
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/syncinfo/BaserevInfo.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/syncinfo/BaserevInfo.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/syncinfo/BaserevInfo.java
index e9422ff9d..56da810e4 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/syncinfo/BaserevInfo.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/syncinfo/BaserevInfo.java
@@ -12,7 +12,7 @@ package org.eclipse.team.internal.ccvs.core.syncinfo;
import org.eclipse.team.internal.ccvs.core.CVSException;
import org.eclipse.team.internal.ccvs.core.Policy;
-import org.eclipse.team.internal.ccvs.core.util.EmptyTokenizer;
+import org.eclipse.team.internal.ccvs.core.util.Util;
/**
* This class represents the information in the CVS/Baserev file
@@ -47,18 +47,18 @@ public class BaserevInfo {
if(entryLine.startsWith(BASEREV_PREFIX)) {
entryLine = entryLine.substring(1);
}
- EmptyTokenizer tokenizer = new EmptyTokenizer(entryLine, ResourceSyncInfo.SEPARATOR);
- if(tokenizer.countTokens() != 2) {
+ String[] strings = Util.parseIntoSubstrings(entryLine, ResourceSyncInfo.SEPARATOR);
+ if(strings.length != 2) {
throw new CVSException(Policy.bind("BaseRevInfo.malformedEntryLine", entryLine)); //$NON-NLS-1$
}
- name = tokenizer.nextToken();
+ name = strings[0];
if(name.length()==0) {
throw new CVSException(Policy.bind("BaseRevInfo.malformedEntryLine", entryLine)); //$NON-NLS-1$
}
- revision = tokenizer.nextToken();
+ revision = strings[1];
if(revision.length()==0) {
throw new CVSException(Policy.bind("BaseRevInfo.malformedEntryLine", entryLine)); //$NON-NLS-1$

Back to the top