public void replay(long lowRevision, long highRevision, boolean sendDeltas, ISVNEditor editor) throws SVNException {
try {
openConnection();
StringBuffer request = DAVReplayHandler.generateReplayRequest(highRevision, lowRevision, sendDeltas);
DAVReplayHandler handler = new DAVReplayHandler(editor, true);
String bcPath = SVNEncodingUtil.uriEncode(getLocation().getPath());
HTTPStatus status = myConnection.doReport(bcPath, request, handler);
if (status.getCode() == 501) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_NOT_IMPLEMENTED, "'replay' REPORT not implemented");