Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-04-18 21:12:34 +0000
committerJean Michel-Lemieux2002-04-18 21:12:34 +0000
commit421d545c69e25143dafcd0cea6ee6d9ac8181fc7 (patch)
tree8221cb58c61d5b860f64b0251674172b6f3bc579
parentf3e290d3fb62ed87fc0e2dd8daded6f7744016eb (diff)
downloadeclipse.platform.team-421d545c69e25143dafcd0cea6ee6d9ac8181fc7.tar.gz
eclipse.platform.team-421d545c69e25143dafcd0cea6ee6d9ac8181fc7.tar.xz
eclipse.platform.team-421d545c69e25143dafcd0cea6ee6d9ac8181fc7.zip
bug in getLatest caused the local tag to be sent to the server instead of the tag passed to the operation. This
broke getting remote files for a tag.
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java
index 77707c9f0..876807459 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/resources/RemoteFile.java
@@ -87,7 +87,17 @@ public class RemoteFile extends RemoteResource implements ICVSRemoteFile {
return null;
}
- RemoteFile file = new RemoteFile(parent, managed.getSyncInfo());
+ // ensure that the entry line has the tag in it. Or else status will return
+ // the latest from the branch of the local resource.
+ if(tag!=null) {
+ MutableResourceSyncInfo newInfo = info.cloneMutable();
+ newInfo.setTag(tag);
+ info = newInfo;
+ }
+
+ // initialize with new sync info from the local resource, this info will
+ // be updated when updateRevision is called.
+ RemoteFile file = new RemoteFile(parent, info);
// use the contents of the file on disk so that the server can calculate the relative
// sync state. This is a trick to allow the server to calculate sync state for us.

Back to the top