Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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