use of com.google.gerrit.server.restapi.change.GetPureRevert in project gerrit by GerritCodeReview.
the class ChangeApiImpl method pureRevert.
@Override
public PureRevertInfo pureRevert(@Nullable String claimedOriginal) throws RestApiException {
try {
GetPureRevert getPureRevert = getPureRevertProvider.get();
getPureRevert.setClaimedOriginal(claimedOriginal);
return getPureRevert.apply(change).value();
} catch (Exception e) {
throw asRestApiException("Cannot compute pure revert", e);
}
}
Aggregations