use of org.eclipse.che.plugin.svn.shared.ShowDiffRequest in project che by eclipse.
the class SubversionClientServiceImpl method showDiff.
@Override
public Promise<CLIOutputResponse> showDiff(Path project, Path[] paths, String revision, Credentials credentials) {
final String url = getBaseUrl() + "/showdiff";
final ShowDiffRequest request = dtoFactory.createDto(ShowDiffRequest.class).withProjectPath(project.toString()).withPaths(toList(paths)).withRevision(revision);
if (credentials != null) {
request.setUsername(credentials.getUsername());
request.setPassword(credentials.getPassword());
}
return asyncRequestFactory.createPostRequest(url, request).loader(loader).send(dtoUnmarshallerFactory.newUnmarshaller(CLIOutputResponse.class));
}
Aggregations