protected void addChangesetsToPendingCommmits(ChangesetInfo[] changesets, List<Commit> commits)
throws RepositoryException {
for(ChangesetInfo changeset : changesets) {
CommitImpl commit = new CommitImpl();
commit.setAuthor(new AuthorImpl(changeset.getOwner()));
commit.setDate(changeset.getDate());
commit.setComment("Branch: " + changeset.getChangesetBranch() +
"; Changeset num: " + changeset.getChangesetId() +
". Comments: " + changeset.getComments());
List<CommitFile> files = getFiles(changeset.getChangesetId());
commit.setFiles(files);
commits.add(commit);
}
}