targetURL = getURL(targetURL, wcRevNumber, SVNRevision .create(revNumber)); SVNURL svnURL = SVNURL.parseURIEncoded(target);
targetURL = getURL(targetURL, wcRevNumber, SVNRevision.create(revNumber)); SVNURL svnURL = SVNURL.parseURIEncoded(targetURL);
    private void doWCReposDiff(SVNWCAccess wcAccess, SVNRevision reposRev,            SVNRevision localRev, boolean reverse, boolean recursive,            boolean useAncestry, OutputStream result) throws SVNException {        // get wc url and revision        String url = wcAccess.getAnchor().getEntries().getEntry("", true)                .getURL();        String target = "".equals(wcAccess.getTargetName()) ? null : wcAccess                .getTargetName();        SVNRevision wcRevNumber = SVNRevision.parse(wcAccess                .getTargetEntryProperty(SVNProperty.REVISION));        SVNRepository repos = createRepository(url);        SVNReporter reporter = new SVNReporter(wcAccess, false, recursive);        SVNDiffEditor editor = new SVNDiffEditor(wcAccess, getDiffGenerator(),                useAncestry, reverse /* reverse */,                localRev == SVNRevision.BASE /* compare to base */, result);        // get target url and revision, fetch target url location at desired        // target revision        long revNumber = getRevisionNumber(url, reposRev);        String targetURL = wcAccess.getTargetEntryProperty(SVNProperty.URL);        if (wcAccess.getTargetEntryProperty(SVNProperty.COPYFROM_URL) != null) {            targetURL = wcAccess                    .getTargetEntryProperty(SVNProperty.COPYFROM_URL);        }        targetURL = getURL(targetURL, wcRevNumber, SVNRevision                .create(revNumber));        SVNURL svnURL = SVNURL.parseURIEncoded(target);        repos.diff(svnURL, revNumber, wcRevNumber.getNumber(), target,                !useAncestry, recursive, reporter, editor);    }