Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-10-20 20:33:56 +0000
committerMichael Valenta2003-10-20 20:33:56 +0000
commitd3fd3f62fc29efbdcfaf36430e07d126eb6c24fd (patch)
tree859eb05597258a6b365d0ec3cb51ecaf43bf07d0
parenta2a169b8a23d6cad0ac857387dcacf4099493389 (diff)
downloadeclipse.platform.team-d3fd3f62fc29efbdcfaf36430e07d126eb6c24fd.tar.gz
eclipse.platform.team-d3fd3f62fc29efbdcfaf36430e07d126eb6c24fd.tar.xz
eclipse.platform.team-d3fd3f62fc29efbdcfaf36430e07d126eb6c24fd.zip
Backed out of last change becuase of test failure.
Will resubmit when failure is dealt with.
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java
index bf51d6a9b..de2f9a8c5 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java
@@ -15,6 +15,7 @@ import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.team.internal.ccvs.core.CVSException;
+import org.eclipse.team.internal.ccvs.core.CVSStatus;
import org.eclipse.team.internal.ccvs.core.CVSTeamProvider;
import org.eclipse.team.internal.ccvs.core.client.Command;
import org.eclipse.team.internal.ccvs.core.client.Session;
@@ -41,7 +42,9 @@ public abstract class SingleCommandOperation extends RepositoryProviderOperation
session.open(Policy.subMonitorFor(monitor, 10), isServerModificationOperation());
try {
IStatus status = executeCommand(session, provider, resources, Policy.subMonitorFor(monitor, 90));
- collectStatus(status);
+ if (status.getCode() == CVSStatus.SERVER_ERROR) {
+ addError(status);
+ }
} finally {
session.close();
}

Back to the top