View | Details | Raw Unified | Return to bug 319661 | Differences between
and this patch

Collapse All | Expand All

(-)src/org/eclipse/team/internal/ccvs/ui/operations/SingleCommandOperation.java (-5 / +5 lines)
Lines 1-5 Link Here
1
/*******************************************************************************
1
/*******************************************************************************
2
 * Copyright (c) 2000, 2006 IBM Corporation and others.
2
 * Copyright (c) 2000, 2011 IBM Corporation and others.
3
 * All rights reserved. This program and the accompanying materials
3
 * All rights reserved. This program and the accompanying materials
4
 * are made available under the terms of the Eclipse Public License v1.0
4
 * are made available under the terms of the Eclipse Public License v1.0
5
 * which accompanies this distribution, and is available at
5
 * which accompanies this distribution, and is available at
Lines 39-48 Link Here
39
		Session session = new Session(getRemoteLocation(provider), getLocalRoot(provider), true /* output to console */);
39
		Session session = new Session(getRemoteLocation(provider), getLocalRoot(provider), true /* output to console */);
40
		session.open(Policy.subMonitorFor(monitor, 10), isServerModificationOperation());
40
		session.open(Policy.subMonitorFor(monitor, 10), isServerModificationOperation());
41
		try {
41
		try {
42
			IStatus status = executeCommand(session, provider, getCVSArguments(session, resources), recurse, Policy.subMonitorFor(monitor, 90));
42
			IStatus status= new Status(IStatus.ERROR, "plugInID", CVSStatus.ERROR_LINE, "OOPS!", null);
43
			if (isReportableError(status)) {
43
			IStatus status1= new Status(IStatus.ERROR, "plugInID", CVSStatus.ERROR_LINE, "OOPS once again!", null);
44
			    throw new CVSException(status);
44
			MultiStatus ms= new MultiStatus("plugInID", 0, new IStatus[] { status, status1 }, "oops", null);
45
            }
45
			throw new CVSException(ms);
46
		} finally {
46
		} finally {
47
			session.close();
47
			session.close();
48
		}
48
		}

Return to bug 319661