diff options
author | Malgorzata Janczarska | 2011-10-14 09:30:47 +0000 |
---|---|---|
committer | Tomasz Zarna | 2011-10-14 09:30:47 +0000 |
commit | 960dba32547fb75ebcb6cd0310340f23c6e61b62 (patch) | |
tree | 2100232b2dc5faf7857be17ab5f17f202d7e249c /bundles | |
parent | f0e53ee2640b02d1f95f87dfcfa88331c3336845 (diff) | |
download | eclipse.platform.team-960dba32547fb75ebcb6cd0310340f23c6e61b62.tar.gz eclipse.platform.team-960dba32547fb75ebcb6cd0310340f23c6e61b62.tar.xz eclipse.platform.team-960dba32547fb75ebcb6cd0310340f23c6e61b62.zip |
bug 339990: [Repo view] Module disappears in CVS Repositories viewv20111014-0930
Diffstat (limited to 'bundles')
-rw-r--r-- | bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryRoot.java | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryRoot.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryRoot.java index cc414aba9..b90cc0399 100644 --- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryRoot.java +++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/repo/RepositoryRoot.java @@ -25,6 +25,7 @@ import org.eclipse.team.internal.ccvs.ui.*; import org.eclipse.team.internal.ccvs.ui.Policy; import org.eclipse.team.internal.ccvs.ui.operations.RemoteLogOperation; import org.eclipse.team.internal.ccvs.ui.operations.RemoteLogOperation.LogEntryCache; +import org.eclipse.team.internal.ccvs.ui.tags.TagSource; public class RepositoryRoot extends PlatformObject { @@ -443,15 +444,22 @@ public class RepositoryRoot extends PlatformObject { return (CVSTag[])tagSet.toArray(new CVSTag[0]); } - /* - * Return the cache key (path) for the given folder path. - * This has been changed to cache the tags directly - * with the folder to better support non-root projects. - * However, resources in the local workspace use the folder - * the project is mapped to as the tag source (see TagSource) + /** + * Return the cache key (path) for the given folder path. For root projects + * it returns the folder the project is mapped to as the tag source. For + * non-root projects it returns only the first segment of the path because + * for the time being tag lists are kept for the remote ancestors of the + * resource that is a direct child of the remote root. + * + * @see TagSource + * @see #addTags(String, CVSTag[]) + * + * @param remotePath + * the remote folder path + * @return the cache key (path) for the given folder path */ private String getCachePathFor(String remotePath) { - return remotePath; + return new Path(null, remotePath).segment(0); } /** |