if (getCommandLine().hasArgument(SVNArgument.RELOCATE)) {
SVNURL targetURL = SVNURL.parseURIEncoded(getCommandLine().getURL(1));
File file = new File(absolutePath).getAbsoluteFile();
file = new File(SVNPathUtil.validateFilePath(file.getAbsolutePath()));
updater.doRelocate(file, switchURL, targetURL, !getCommandLine().hasArgument(SVNArgument.NON_RECURSIVE));
} else {
File file = new File(absolutePath).getAbsoluteFile();
file = new File(SVNPathUtil.validateFilePath(file.getAbsolutePath()));
updater.getDebugLog().info("switching path: " + file);
updater.doSwitch(file, switchURL, revision, !getCommandLine().hasArgument(SVNArgument.NON_RECURSIVE));