.key("ts").value(commit.getTimestamp())
.key("msg").value(commit.getMessage());
if (commit.getBranchId() != null) {
commitBuff.key("branchRootId").value(commit.getBranchId().toString());
}
commitBuff.key("changes").value(diff).endObject();
}
return commitBuff.endArray().toString();
}
private MongoCommit extractCommit(List<MongoCommit> commits, long revisionId) {