if (!includeBranchCommits) {
queryBuilder = queryBuilder.and(new BasicDBObject(MongoNode.KEY_BRANCH_ID,
new BasicDBObject("$exists", false)));
}
DBObject query = queryBuilder.get();
<BUG>LOG.debug(String.format("Executing query: %s", query));
</BUG>
return maxEntries > 0? commitCollection.find(query).limit(maxEntries) : commitCollection.find(query);
}
private List<MongoCommit> convertToCommits(DBCursor dbCursor) {

if (!includeBranchCommits) {
queryBuilder = queryBuilder.and(new BasicDBObject(MongoNode.KEY_BRANCH_ID,
new BasicDBObject("$exists", false)));
}
DBObject query = queryBuilder.get();
LOG.debug("Executing query: {}", query);
return maxEntries > 0? commitCollection.find(query).limit(maxEntries) : commitCollection.find(query);
}
private List<MongoCommit> convertToCommits(DBCursor dbCursor) {
