| | |
| | | Map<String, Activity> activity = new HashMap<String, Activity>();
|
| | | for (RepositoryModel model : models) {
|
| | | if (model.hasCommits && model.lastChange.after(thresholdDate)) {
|
| | | if (model.isCollectingGarbage) {
|
| | | continue;
|
| | | }
|
| | | Repository repository = GitBlit.self()
|
| | | .getRepository(model.name);
|
| | | List<String> branches = new ArrayList<String>();
|
| | |
| | | }
|
| | | List<RevCommit> commits = JGitUtils.getRevLog(repository,
|
| | | branch, thresholdDate);
|
| | | for (RevCommit commit : commits) {
|
| | | if (model.maxActivityCommits > 0 && commits.size() > model.maxActivityCommits) {
|
| | | // trim commits to maximum count
|
| | | commits = commits.subList(0, model.maxActivityCommits);
|
| | | }
|
| | | for (RevCommit commit : commits) { |
| | | Date date = JGitUtils.getCommitDate(commit);
|
| | | String dateStr = df.format(date);
|
| | | if (!activity.containsKey(dateStr)) {
|