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 66345bb7d..06d5393ca 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 @@ private Element createCQ(CQ cq) { 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());