doRelocate(wcAccess.getAnchor(), wcAccess.getTargetName(), oldURL, newURL, recursive);
doRelocate(wcAccess.getAnchor(), wcAccess.getTargetName(), oldURL.toString(), newURL.toString(), recursive);
    public void doRelocate(File dst, String oldURL, String newURL,            boolean recursive) throws SVNException {        oldURL = validateURL(oldURL);        newURL = validateURL(newURL);        SVNRepository repos = createRepository(newURL);        repos.testConnection();        String uuid = repos.getRepositoryUUID();        SVNWCAccess wcAccess = createWCAccess(dst);        try {            wcAccess.open(true, recursive);            String oldUUID = wcAccess.getTargetEntryProperty(SVNProperty.UUID);            if (!oldUUID.equals(uuid)) {                SVNErrorManager.error("The repository at '" + newURL                        + "' has uuid '" + uuid + "', but the WC has '"                        + oldUUID + "'");            }            doRelocate(wcAccess.getAnchor(), wcAccess.getTargetName(), oldURL,                    newURL, recursive);        } finally {            wcAccess.close(true);        }    }