println(err, "Error restoring text for '" + path + "'");
try { String pathKind = workspace.getPropertyValue(wcPath, SVNProperty.KIND); DebugLog.log("REVERT: kind of " + wcPath + " : " + pathKind); if (!SVNProperty.KIND_DIR.equals(pathKind)) { println(err, "Error restoring text for '" + path + "'"); } } catch (SVNException e) { }
    public final void run(final PrintStream out, final PrintStream err) throws SVNException {        final boolean recursive = getCommandLine().hasArgument(SVNArgument.RECURSIVE);        for (int i = 0; i < getCommandLine().getPathCount(); i++) {            final String absolutePath = getCommandLine().getPathAt(i);            final String workspacePath = absolutePath;            final ISVNWorkspace workspace = createWorkspace(absolutePath);            workspace.addWorkspaceListener(new SVNWorkspaceAdapter() {                public void modified(String path, int kind) {                    try {                        path = convertPath(workspacePath, workspace, path);                    } catch (IOException e) {}                    if (kind == SVNStatus.REVERTED) {                        println(out, "Reverted '" + path + "'");                    } else {                        println(err, "Error restoring text for '" + path + "'");                        println(out, "Error: Failed to revert '" + path + "' -- try updating instead");                    }                }            });            final String relativePath = SVNUtil.getWorkspacePath(workspace, absolutePath);            workspace.revert(relativePath, recursive);        }    }