thisSessionPath = SVNEncodingUtil.uriEncode(thisSessionPath);
DAVBaselineInfo info = DAVUtil.getBaselineInfo(connection, this, thisSessionPath, pegRevision, false, false, null);
String finalBCPath = SVNPathUtil.append(info.baselineBase, info.baselinePath);
StringBuffer requestBody = DAVDeletedRevisionHandler.generateGetDeletedRevisionRequest(null, path, pegRevision, endRevision);
DAVDeletedRevisionHandler handler = new DAVDeletedRevisionHandler();
HTTPStatus status = connection.doReport(finalBCPath, requestBody, handler);
if (status.getCode() == 501) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_IMPLEMENTED, "'get-deleted-rev' REPORT not implemented");
SVNErrorManager.error(err, status.getError(), SVNLogType.NETWORK);
}
return handler.getRevision();
} finally {
closeConnection();
}
}