Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2011-02-13 00:43:21 +0000
committerTomasz Zarna2011-02-13 00:43:21 +0000
commitaa3ed4420a1563d433193195123646edd380c144 (patch)
tree7bf66cc46151692baaccef96b578b16c65537e39 /bundles/org.eclipse.team.core/src/org
parentd3b280d55b4690b45878a99930e3a87bd3825951 (diff)
downloadeclipse.platform.team-aa3ed4420a1563d433193195123646edd380c144.tar.gz
eclipse.platform.team-aa3ed4420a1563d433193195123646edd380c144.tar.xz
eclipse.platform.team-aa3ed4420a1563d433193195123646edd380c144.zip
bug 76386: [History View] CVS Resource History shows revisions from all branches
Diffstat (limited to 'bundles/org.eclipse.team.core/src/org')
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/IFileRevision.java12
-rw-r--r--bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/provider/FileRevision.java13
2 files changed, 22 insertions, 3 deletions
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/IFileRevision.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/IFileRevision.java
index 95e2a298c..90ec86f60 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/IFileRevision.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/IFileRevision.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2008 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Olexiy Buyanskyy <olexiyb@gmail.com> - Bug 76386 - [History View] CVS Resource History shows revisions from all branches
*******************************************************************************/
package org.eclipse.team.core.history;
@@ -95,6 +96,15 @@ public interface IFileRevision {
public String getComment();
/**
+ * Returns the branches names of file revision.
+ *
+ * @return an array of ITag's if branch names exist for this revision or an
+ * empty ITag array if no names exist
+ * @since 3.6
+ */
+ public ITag[] getBranches();
+
+ /**
* Returns the set of tags available for this file revision.
*
* @return an array of ITag's if ITags exist for this revision or an empty ITag array
diff --git a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/provider/FileRevision.java b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/provider/FileRevision.java
index 054b1ad83..fc8a8015a 100644
--- a/bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/provider/FileRevision.java
+++ b/bundles/org.eclipse.team.core/src/org/eclipse/team/core/history/provider/FileRevision.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2000, 2007 IBM Corporation and others.
+ * Copyright (c) 2000, 2011 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -7,6 +7,7 @@
*
* Contributors:
* IBM Corporation - initial API and implementation
+ * Olexiy Buyanskyy <olexiyb@gmail.com> - Bug 76386 - [History View] CVS Resource History shows revisions from all branches
*******************************************************************************/
package org.eclipse.team.core.history.provider;
@@ -131,7 +132,15 @@ public abstract class FileRevision implements IFileRevision {
public String getComment() {
return null;
}
-
+
+ /**
+ * {@inheritDoc}
+ * @since 3.6
+ */
+ public ITag[] getBranches() {
+ return new ITag[0];
+ }
+
/* (non-Javadoc)
* @see org.eclipse.team.core.history.IFileRevision#getTags()
*/

Back to the top