editor.addDir(destPath, deletePath, revNumber); editor.closeDir();
if (srcNodeKind == SVNNodeKind.DIR) { editor.addDir(destPath, deletePath, revNumber); editor.closeDir(); } else { editor.addFile(destPath, deletePath, revNumber); editor.closeFile(null); }
    public void move(String srcPath, String destPath, String message, Revision revision, boolean force) throws ClientException {        if (isURL(srcPath) && isURL(destPath)) {            ISVNEditor editor = null;            try {                String root = PathUtil.getCommonRoot(new String[] {destPath, srcPath});                SVNRepository repository = createRepository(root);                long revNumber = getRevisionNumber(revision, repository, null, null);                String deletePath = srcPath.substring(root.length());                destPath = destPath.substring(root.length());                deletePath = PathUtil.removeLeadingSlash(deletePath);                destPath = PathUtil.removeLeadingSlash(destPath);                deletePath = PathUtil.decode(deletePath);                destPath = PathUtil.decode(destPath);                                editor = repository.getCommitEditor(message, null);                editor.openRoot(-1);                editor.addDir(destPath, deletePath, revNumber);                editor.closeDir();                editor.deleteEntry(deletePath, revNumber);                                editor.closeDir();                editor.closeEdit();            } catch (SVNException e) {                if (editor != null) {                    try {                        editor.abortEdit();                    } catch (SVNException es) {}                }                throwException(e);            }        } else if (!isURL(srcPath) && !isURL(destPath)) {            try {            	String wsRoot = PathUtil.getCommonRoot(new String[] {srcPath, destPath});                ISVNWorkspace ws = createWorkspace(wsRoot);                ws.addWorkspaceListener(new LocalWorkspaceListener(myNotify, ws));                ws.copy(SVNUtil.getWorkspacePath(ws, srcPath), SVNUtil.getWorkspacePath(ws, destPath), true);            } catch (SVNException e) {                throwException(e);            }        } else {            throw new ClientException("only WC->WC or URL->URL move is supported", "", 0);        }    }