Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-07-14 06:55:24 +0000
committerddunne2010-07-14 06:55:24 +0000
commit4438f42304c59b3f799cce63f1477fbe15301c37 (patch)
tree8d9101281de18d2a64e855c8b59e4cb63b33ba26 /plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java
parent7bb2c6621bb9fa6c05d2cc69aaa1e2fb8e510672 (diff)
downloadorg.eclipse.osee-4438f42304c59b3f799cce63f1477fbe15301c37.tar.gz
org.eclipse.osee-4438f42304c59b3f799cce63f1477fbe15301c37.tar.xz
org.eclipse.osee-4438f42304c59b3f799cce63f1477fbe15301c37.zip
added commit date and comment to XCommitManager
Diffstat (limited to 'plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java')
-rw-r--r--plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java
index d18700289e0..96f707871d5 100644
--- a/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java
+++ b/plugins/org.eclipse.osee.ats/src/org/eclipse/osee/ats/util/AtsBranchManager.java
@@ -36,9 +36,9 @@ import org.eclipse.osee.ats.internal.AtsPlugin;
import org.eclipse.osee.ats.util.widgets.commit.CommitStatus;
import org.eclipse.osee.ats.util.widgets.commit.ICommitConfigArtifact;
import org.eclipse.osee.ats.workflow.item.AtsAddDecisionReviewRule;
+import org.eclipse.osee.ats.workflow.item.AtsAddDecisionReviewRule.DecisionRuleOption;
import org.eclipse.osee.ats.workflow.item.AtsAddPeerToPeerReviewRule;
import org.eclipse.osee.ats.workflow.item.StateEventType;
-import org.eclipse.osee.ats.workflow.item.AtsAddDecisionReviewRule.DecisionRuleOption;
import org.eclipse.osee.framework.core.data.IOseeBranch;
import org.eclipse.osee.framework.core.enums.BranchArchivedState;
import org.eclipse.osee.framework.core.enums.BranchState;
@@ -142,6 +142,21 @@ public class AtsBranchManager {
return !conflictManager.remainingConflictsExist();
}
+ public TransactionRecord getCommitTransactionRecord(ICommitConfigArtifact configArt) throws OseeCoreException {
+ Branch branch = configArt.getParentBranch();
+ if (branch == null) {
+ return null;
+ }
+
+ Collection<TransactionRecord> transactions = TransactionManager.getCommittedArtifactTransactionIds(teamArt);
+ for (TransactionRecord transId : transactions) {
+ if (transId.getBranchId() == branch.getId()) {
+ return transId;
+ }
+ }
+ return null;
+ }
+
public CommitStatus getCommitStatus(ICommitConfigArtifact configArt) throws OseeCoreException {
Branch branch = configArt.getParentBranch();
if (branch == null) {

Back to the top