Search in sources :

Example 1 with ShowDiffRequest

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));
}
Also used : CLIOutputResponse(org.eclipse.che.plugin.svn.shared.CLIOutputResponse) ShowDiffRequest(org.eclipse.che.plugin.svn.shared.ShowDiffRequest)

Aggregations

CLIOutputResponse (org.eclipse.che.plugin.svn.shared.CLIOutputResponse)1 ShowDiffRequest (org.eclipse.che.plugin.svn.shared.ShowDiffRequest)1