Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTag.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTag.java b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTag.java
index c7de7e32b..7b667286c 100644
--- a/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTag.java
+++ b/bundles/org.eclipse.team.cvs.core/src/org/eclipse/team/internal/ccvs/core/CVSTag.java
@@ -59,6 +59,12 @@ public class CVSTag {
return getName().compareTo(other.getName());
}
+ public static boolean equalTags(CVSTag tag1, CVSTag tag2) {
+ if (tag1 == null) tag1 = CVSTag.DEFAULT;
+ if (tag2 == null) tag2 = CVSTag.DEFAULT;
+ return tag1.equals(tag2);
+ }
+
public static IStatus validateTagName(String tagName) {
if (tagName == null)
return new CVSStatus(CVSStatus.ERROR, Policy.bind("CVSTag.nullName")); //$NON-NLS-1$

Back to the top