Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-09-23 17:18:59 +0000
committerMichael Valenta2003-09-23 17:18:59 +0000
commit552a200b27055ad63e0dd2ea43f8b3ebb49b08f7 (patch)
treeb5216e0a6a57cacc1162da3504792d7a76769e72
parente738d029a1fed7f9003e40cda47fc2d1538614b2 (diff)
downloadeclipse.platform.team-552a200b27055ad63e0dd2ea43f8b3ebb49b08f7.tar.gz
eclipse.platform.team-552a200b27055ad63e0dd2ea43f8b3ebb49b08f7.tar.xz
eclipse.platform.team-552a200b27055ad63e0dd2ea43f8b3ebb49b08f7.zip
43519: [CVS UI] Problems setting read/write locations
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryManager.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryManager.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryManager.java
index ebf50efaa..878222083 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryManager.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryManager.java
@@ -909,7 +909,10 @@ public class RepositoryManager {
CVSProviderPlugin.getPlugin().disposeRepository(oldLocation);
newLocation.updateCache();
- root.setRepositoryLocation(newLocation);
+ // Get the new location from the CVS plugin to ensure we use the
+ // instance that will be returned by future calls to getRepository()
+ root.setRepositoryLocation(
+ CVSProviderPlugin.getPlugin().getRepository(newLocation.getLocation()));
add(root);
} catch (CVSException e) {
throw new InvocationTargetException(e);

Back to the top