File dst = new File("C:\\i\\test5");     differ.doDiff(dst, SVNRevision.create(21), SVNRevision.HEAD, true, false, System.out);
File dst = new File("C:\\i\\test5\\newDir"); differ.doDiff(dst, SVNRevision.create(21), SVNRevision.WORKING, false, false, System.out);
    public static void main(String[] args) {        DAVRepositoryFactory.setup();        SVNRepositoryFactoryImpl.setup();                ISVNRepositoryFactory repositoryFactory = new ISVNRepositoryFactory() {            public SVNRepository createRepository(String url) throws SVNException {                SVNRepository repos = SVNRepositoryFactory.create(SVNRepositoryLocation.parseURL(url));                repos.setCredentialsProvider(new SVNSimpleCredentialsProvider("alex", "cvs"));                return repos;            }                    };        try {            SVNUpdateClient updater = new SVNUpdateClient(repositoryFactory, null, new SVNCommandEventProcessor(System.out, false, false));            SVNDiffClient differ = new SVNDiffClient(repositoryFactory, null, null);            //            File dst = new File("C:\\i\\test5\\test&file.txt");            File dst = new File("C:\\i\\test5");//            String url = "http://svn.collab.net/repos/svn/tags/1.2.0/";                        // should report an error.//            differ.getDiffGenerator().setDiffDeleted(false);            differ.doDiff(dst, SVNRevision.create(21), SVNRevision.HEAD, true, false, System.out);//            updater.doUpdate(dst, SVNRevision.HEAD, true);        } catch (Throwable e) {            e.printStackTrace();        }             }