private HistoryEntry createHistoryEntry(HgLogMessage h, File repository, File[] files) {
String username = h.getUsername();
String author = h.getAuthor();
if(username == null || "".equals(username.trim())) {
username = author;
}
return new HistoryEntry(
files,
h.getDate(),
h.getMessage(),
author,
username,
h.getHgRevision().getRevisionNumber() + ":" + h.getHgRevision().getChangesetId(),
h.getHgRevision().getRevisionNumber(),
getActions(),
new RevisionProviderImpl(h.getHgRevision()),
null,
new ParentProviderImpl(h, files, repository));
}