boolean noDiffDeleted, boolean force) throws ClientException {
SVNDiffClient differ = getSVNDiffClient();
differ.getDiffGenerator().setDiffDeleted(!noDiffDeleted);
differ.getDiffGenerator().setForcedBinaryDiff(force);
differ.setOptions(getOptions());
SVNRevision rev1 = JavaHLObjectFactory.getSVNRevision(revision1);
SVNRevision rev2 = JavaHLObjectFactory.getSVNRevision(revision2);
try {
differ.getDiffGenerator().setBasePath(getDiffBasePath(relativeToDir));
OutputStream out = SVNFileUtil.openFileForWriting(new File(outFileName));
if (!isURL(target1) && !isURL(target2)) {
differ.doDiff(new File(target1).getAbsoluteFile(), rev1,