if (wcAccess.getTargetEntry() == null) { SVNErrorManager.error("svn: '" + path1 + "' is not under version control"); }
    private void doDiffWCWC(File path1, SVNRevision revision1, File path2, SVNRevision revision2, boolean recursive, boolean useAncestry,            OutputStream result) throws SVNException {        if (!path1.equals(path2) || !(revision1 == SVNRevision.BASE && revision2 == SVNRevision.WORKING)) {            SVNErrorManager.error("svn: Only diffs between a path's text-base " +                                    "and its working files are supported at this time");        }                SVNWCAccess wcAccess = createWCAccess(path1);        wcAccess.open(false, recursive);//        long rev1 = getRevisionNumber(revision1, null, path1);//        long rev2 = -1;                SVNDiffEditor editor = new SVNDiffEditor(wcAccess, getDiffGenerator(), useAncestry, false, false, result);        editor.closeEdit();        wcAccess.close(false);    }