Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2009-06-18 15:38:38 +0000
committerddunne2009-06-18 15:38:38 +0000
commit8c9d4a2260b867d2815d79497944c59c1dbabe1d (patch)
tree3e5b6c145d01770ec2e3563c3a0da31b717d0b86
parenta40595138fc738977328df6c0a699ccfcdc39372 (diff)
downloadorg.eclipse.osee-8c9d4a2260b867d2815d79497944c59c1dbabe1d.tar.gz
org.eclipse.osee-8c9d4a2260b867d2815d79497944c59c1dbabe1d.tar.xz
org.eclipse.osee-8c9d4a2260b867d2815d79497944c59c1dbabe1d.zip
-rw-r--r--org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java b/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java
index 211070c0a52..1fe41cf15f0 100644
--- a/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java
+++ b/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java
@@ -435,14 +435,18 @@ public class AtsBranchManager {
/**
* Return working branch associated with SMA, even if it's been archived; This data is cached across all workflows
- * with the cache being updated by local and remote events.
+ * with the cache being updated by local and remote events. Filters out rebaseline branches (which are working
+ * branches also).
*
* @param includeDeleted TODO
* @return Branch
*/
public Branch getWorkingBranch(boolean includeArchived, boolean includeDeleted) throws OseeCoreException {
- Set<Branch> branches =
- BranchManager.getAssociatedArtifactBranches(smaMgr.getSma(), includeArchived, includeDeleted);
+ Set<Branch> branches = new HashSet<Branch>();
+ for (Branch branch : BranchManager.getAssociatedArtifactBranches(smaMgr.getSma(), includeArchived, includeDeleted)) {
+ if (branch.isRebaselined()) continue;
+ branches.add(branch);
+ }
if (branches.size() == 0) {
return null;
} else if (branches.size() > 1) {

Back to the top