aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.iplog
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2011-02-06 01:19:52 +0100
committerMatthias Sohn <matthias.sohn@sap.com>2011-02-06 01:21:30 +0100
commit78e61ea2519f0877c76216b57cf9554639383e70 (patch)
tree22c6b9fde002be358800b30e6e65d11b70e90828 /org.eclipse.jgit.iplog
parenta3620cbbe144c9b666ce4472fd5e8ef1222bd641 (diff)
downloadjgit-78e61ea2519f0877c76216b57cf9554639383e70.tar.gz
jgit-78e61ea2519f0877c76216b57cf9554639383e70.zip
In iplog list approved CQs as "active"
Change-Id: I69c60576ae648fea2a730c9e9f042004bccecc90 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit.iplog')
-rw-r--r--org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java
index 66345bb7dc..06d5393ca7 100644
--- a/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java
+++ b/org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java
@@ -552,11 +552,18 @@ public class IpLogGenerator {
required(r, "description", cq.getDescription());
optional(r, "license", cq.getLicense());
optional(r, "use", cq.getUse());
- optional(r, "state", cq.getState());
+ optional(r, "state", mapCQState(cq.getState()));
optional(r, "comments", cq.getComments());
return r;
}
+ private String mapCQState(String state) {
+ // "approved" CQs shall be listed as "active" in the iplog
+ if (state.equals("approved"))
+ return "active";
+ return state;
+ }
+
private Element createCommitter(Committer who) {
Element r = createElement("committer");
required(r, "id", who.getID());