path = MongoUtil.adjustPath(path);
maxEntries = maxEntries < 0 ? Integer.MAX_VALUE : maxEntries;
FetchCommitsAction action = new FetchCommitsAction(nodeStore);
action.setMaxEntries(maxEntries);
action.includeBranchCommits(false);
List<MongoCommit> commits = action.execute();
List<MongoCommit> history = new ArrayList<MongoCommit>();
for (int i = commits.size() - 1; i >= 0; i--) {
MongoCommit commit = commits.get(i);