瀏覽代碼

In iplog list approved CQs as "active"

Change-Id: I69c60576ae648fea2a730c9e9f042004bccecc90
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v0.11.1
Matthias Sohn 13 年之前
父節點
當前提交
78e61ea251
共有 1 個文件被更改,包括 8 次插入1 次删除
  1. 8
    1
      org.eclipse.jgit.iplog/src/org/eclipse/jgit/iplog/IpLogGenerator.java

+ 8
- 1
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());

Loading…
取消
儲存