DAVConnection connection = getConnection();
DAVBaselineInfo info = DAVUtil.getBaselineInfo(connection, this,
SVNEncodingUtil.uriEncode(getLocation().getPath()), revision, false, false, null);
String path = SVNPathUtil.append(info.baselineBase, info.baselinePath);
path = info.baseline;
DAVProppatchHandler handler = new DAVProppatchHandler();
SVNErrorMessage requestError = null;
try {
connection.doProppatch(null, path, request, handler, null);
} catch (SVNException e) {
requestError = e.getErrorMessage();
}
if (requestError != null || handler.getError() != null){
if (requestError != null){
requestError.setChildErrorMessage(handler.getError());
} else {
requestError = handler.getError();
}
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED,
"DAV request failed; it's possible that the repository's " +
"pre-revprop-change hook either failed or is non-existent");
SVNErrorManager.error(err, requestError, SVNLogType.NETWORK);