}
}
StringBuffer request = DAVLocationSegmentsHandler.generateGetLocationSegmentsRequest(null, path,
pegRevision, startRevision, endRevision);
DAVLocationSegmentsHandler davHandler = new DAVLocationSegmentsHandler(handler);
String root = absolutePath ? myRepositoryRoot.getPath() : getLocation().getPath();
root = SVNEncodingUtil.uriEncode(root);
DAVBaselineInfo info = DAVUtil.getBaselineInfo(myConnection, this, root, pegRevision, false,
false, null);
path = SVNPathUtil.append(info.baselineBase, info.baselinePath);
HTTPStatus status = myConnection.doReport(path, request, davHandler);
if (status.getCode() == 501) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_IMPLEMENTED,
"'get-location-segments' REPORT not implemented");
SVNErrorManager.error(err, status.getError(), SVNLogType.NETWORK);
} else if (status.getError() != null) {
SVNErrorManager.error(status.getError(), SVNLogType.NETWORK);
}
return davHandler.getTotalRevisions();
} finally {
closeConnection();
}
}