Search in sources :

Example 1 with CommitRequest

use of org.eclipse.che.plugin.svn.shared.CommitRequest in project che by eclipse.

the class SubversionClientServiceImpl method commit.

@Override
public Promise<CLIOutputWithRevisionResponse> commit(Path project, Path[] paths, String message, boolean keepChangeLists, boolean keepLocks) {
    final String url = getBaseUrl() + "/commit";
    final CommitRequest request = dtoFactory.createDto(CommitRequest.class).withPaths(toList(paths)).withMessage(message).withProjectPath(project.toString()).withKeepChangeLists(keepChangeLists).withKeepLocks(keepLocks);
    return asyncRequestFactory.createPostRequest(url, request).loader(loader).send(dtoUnmarshallerFactory.newUnmarshaller(CLIOutputWithRevisionResponse.class));
}
Also used : CommitRequest(org.eclipse.che.plugin.svn.shared.CommitRequest) CLIOutputWithRevisionResponse(org.eclipse.che.plugin.svn.shared.CLIOutputWithRevisionResponse)

Aggregations

CLIOutputWithRevisionResponse (org.eclipse.che.plugin.svn.shared.CLIOutputWithRevisionResponse)1 CommitRequest (org.eclipse.che.plugin.svn.shared.CommitRequest)1