View | Details | Raw Unified | Return to bug 117329
Collapse All | Expand All

(-)src/org/eclipse/team/internal/ccvs/ui/operations/CheckoutIntoOperation.java (-1 / +11 lines)
Lines 318-323 Link Here
318
		return OK;
318
		return OK;
319
	}
319
	}
320
320
321
	protected String getRemoteModuleName(ICVSRemoteFolder resource) {
322
		String moduleName;
323
		if (resource.isDefinedModule()) {
324
			moduleName = resource.getName();
325
		} else {
326
			moduleName = resource.getRepositoryRelativePath();
327
		}
328
		return moduleName;
329
	}
330
321
	/* private */ IStatus checkout(final ICVSRemoteFolder remoteFolder, ICVSFolder parentFolder, boolean recurse, IProgressMonitor monitor) throws CVSException {
331
	/* private */ IStatus checkout(final ICVSRemoteFolder remoteFolder, ICVSFolder parentFolder, boolean recurse, IProgressMonitor monitor) throws CVSException {
322
		// Open a connection session to the repository
332
		// Open a connection session to the repository
323
		monitor.beginTask(null, 100);
333
		monitor.beginTask(null, 100);
Lines 363-369 Link Here
363
			IStatus status = Command.CHECKOUT.execute(session,
373
			IStatus status = Command.CHECKOUT.execute(session,
364
				Command.NO_GLOBAL_OPTIONS,
374
				Command.NO_GLOBAL_OPTIONS,
365
				(LocalOption[])localOptions.toArray(new LocalOption[localOptions.size()]),
375
				(LocalOption[])localOptions.toArray(new LocalOption[localOptions.size()]),
366
				new String[] { remoteFolder.getRepositoryRelativePath() },
376
				new String[]{getRemoteModuleName(remoteFolder)},
367
				null,
377
				null,
368
				Policy.subMonitorFor(monitor, 80));
378
				Policy.subMonitorFor(monitor, 80));
369
			if (!status.isOK()) {
379
			if (!status.isOK()) {

Return to bug 117329