editor = new SVNRemoteDiffEditor(null, null, callback, repository2, rev1, rev2, false, null, this);
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();
}
};
repository1.diff(url2, rev2, rev1, target1, !useAncestry, depth, true, reporter, SVNCancellableEditor.newInstance(editor, this, getDebugLog()));
} finally {
if (editor != null) {