repository2.closeSession();
}
repository2 = createRepository(url1, null, null, false);
File tmpFile = getDiffGenerator().createTempDirectory();
try {
SVNDiffStatusEditor editor = new SVNDiffStatusEditor(basePath, target1, repository2, rev1, handler);
ISVNReporterBaton reporter = new ISVNReporterBaton() {
public void report(ISVNReporter reporter) throws SVNException {
//TODO(sd): dynamic depth here
reporter.setPath("", null, rev1, SVNDepth.INFINITY, false);
reporter.finishReport();