use of net.nemerosa.ontrack.extension.svn.model.SVNChangeLogRevision in project ontrack by nemerosa.
the class SVNServiceUtils method createChangeLogRevision.
public static SVNChangeLogRevision createChangeLogRevision(SVNRepository repository, String path, int level, long revision, String message, String author, LocalDateTime revisionDate) {
// Issue service
ConfiguredIssueService configuredIssueService = repository.getConfiguredIssueService();
// Formatted message
String formattedMessage;
if (configuredIssueService != null) {
formattedMessage = configuredIssueService.formatIssuesInMessage(message);
} else {
formattedMessage = message;
}
// Revision URL
String revisionUrl = repository.getRevisionBrowsingURL(revision);
// OK
return new SVNChangeLogRevision(path, level, revision, author, revisionDate, message, revisionUrl, formattedMessage);
}
Aggregations