diff options
author | Ryan D. Brooks | 2011-04-22 05:37:12 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2011-04-22 05:37:12 +0000 |
commit | 797c8eef366928837386ec0bb2a09ed02feabe78 (patch) | |
tree | 2b5b29beec9ba3d9babc24838815e1c9ad75dbfc /plugins/org.eclipse.osee.framework.branch.management/src | |
parent | ff35ae091c514df784f08eb94c2b8b12f2c8b8cc (diff) | |
download | org.eclipse.osee-797c8eef366928837386ec0bb2a09ed02feabe78.tar.gz org.eclipse.osee-797c8eef366928837386ec0bb2a09ed02feabe78.tar.xz org.eclipse.osee-797c8eef366928837386ec0bb2a09ed02feabe78.zip |
bug: Also apply BranchFilter to parent branch in RecursiveBranchProvider0.9.9.v201104220001_RC
Diffstat (limited to 'plugins/org.eclipse.osee.framework.branch.management/src')
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/purge/BranchOperation.java b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/purge/BranchOperation.java index 80bb48fcb20..a22f630bac2 100644 --- a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/purge/BranchOperation.java +++ b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/purge/BranchOperation.java @@ -54,6 +54,7 @@ public final class BranchOperation extends AbstractOperation { log(subOp.getName()); doSubWork(subOp, monitor, 0); } + log("Branch Operation Completed."); } private List<Branch> order(Collection<Branch> branches) throws OseeCoreException { diff --git a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/purge/RecursiveBranchProvider.java b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/purge/RecursiveBranchProvider.java index bcc6a63c7e2..41308ca27ea 100644 --- a/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/purge/RecursiveBranchProvider.java +++ b/plugins/org.eclipse.osee.framework.branch.management/src/org/eclipse/osee/framework/branch/management/purge/RecursiveBranchProvider.java @@ -34,8 +34,11 @@ public final class RecursiveBranchProvider implements IBranchesProvider { public Collection<Branch> getBranches() throws OseeCoreException { Conditions.checkNotNull(parentBranch, "seed"); Set<Branch> children = new HashSet<Branch>(); + parentBranch.getChildBranches(children, true, filter); - children.add(parentBranch); + if (filter.matches(parentBranch)) { + children.add(parentBranch); + } return children; } }
\ No newline at end of file |