Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2002-04-08 18:46:03 -0400
committerJean Michel-Lemieux2002-04-08 18:46:03 -0400
commit6eba7524f5f3a03f75a7f50052839a268df08330 (patch)
tree0dd35131dfb4bb26a1c7d89a19e823e3c8d84f70
parent78867097994c1506195eeb2cd00a612d9d364f6b (diff)
downloadeclipse.platform.team-6eba7524f5f3a03f75a7f50052839a268df08330.tar.gz
eclipse.platform.team-6eba7524f5f3a03f75a7f50052839a268df08330.tar.xz
eclipse.platform.team-6eba7524f5f3a03f75a7f50052839a268df08330.zip
Bug 11419: Automatically add version to repo view when tagging
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/TagAction.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/TagAction.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/TagAction.java
index befe2df85..b0ed5268e 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/TagAction.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/actions/TagAction.java
@@ -66,10 +66,16 @@ public class TagAction extends TeamAction {
CVSTeamProvider provider = (CVSTeamProvider)iterator.next();
List list = (List)table.get(provider);
IResource[] providerResources = (IResource[])list.toArray(new IResource[list.size()]);
- IStatus status = provider.tag(providerResources, IResource.DEPTH_INFINITE, new CVSTag(result[0], CVSTag.VERSION), subMonitor);
+ CVSTag tag = new CVSTag(result[0], CVSTag.VERSION);
+ IStatus status = provider.tag(providerResources, IResource.DEPTH_INFINITE, tag, subMonitor);
if (status.getCode() != CVSStatus.OK) {
messages.add(status);
}
+ // Cache the new tag creation even if the tag may of has warnings.
+ CVSUIPlugin.getPlugin().getRepositoryManager().addVersionTags(
+ CVSWorkspaceRoot.getCVSFolderFor(provider.getProject()),
+ new CVSTag[] {tag});
+
}
previousTag = result[0];
} catch (TeamException e) {

Back to the top