Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-08-14 17:53:51 +0000
committerMichael Valenta2003-08-14 17:53:51 +0000
commitf2b85cb1f058c4b0c740aaa1141cd23407b0fcdb (patch)
treea830a39485dd22470e904a2a9c66022fcc1ad59e
parent00e3ceef79e6d6a34bf7ec9df005ee99ce15e723 (diff)
downloadeclipse.platform.team-f2b85cb1f058c4b0c740aaa1141cd23407b0fcdb.tar.gz
eclipse.platform.team-f2b85cb1f058c4b0c740aaa1141cd23407b0fcdb.tar.xz
eclipse.platform.team-f2b85cb1f058c4b0c740aaa1141cd23407b0fcdb.zip
*** empty log message ***
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java3
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/UpdateOnlyMergableOperation.java1
2 files changed, 3 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 adbe49e8a..4ee9d2e0f 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,7 @@ public abstract class SingleCommandOperation extends RepositoryProviderOperation
session.open(Policy.subMonitorFor(monitor, 10));
try {
IStatus status = executeCommand(session, provider, resources, Policy.subMonitorFor(monitor, 90));
- if (!status.isOK()) {
+ if (status.getCode() == CVSStatus.SERVER_ERROR) {
addError(status);
}
} finally {
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/UpdateOnlyMergableOperation.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/UpdateOnlyMergableOperation.java
index e8fff0314..a869a107a 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/UpdateOnlyMergableOperation.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/operations/UpdateOnlyMergableOperation.java
@@ -53,6 +53,7 @@ public class UpdateOnlyMergableOperation extends SingleCommandOperation {
Policy.subMonitorFor(monitor, 90));
if (status.getCode() != IStatus.ERROR) {
addSkippedFiles(update.getSkippedFiles());
+ return OK;
}
return status;
}

Back to the top