ignoreAncestry, dryRun, false);
}
public void merge(String path1, Revision revision1, String path2, Revision revision2, String localPath,
boolean force, int depth, boolean ignoreAncestry, boolean dryRun, boolean recordOnly) throws ClientException {
SVNDiffClient differ = getSVNDiffClient();
try {
if (isURL(path1) && isURL(path2)) {
SVNURL url1 = SVNURL.parseURIEncoded(path1);
SVNURL url2 = SVNURL.parseURIEncoded(path2);
differ.doMerge(url1, JavaHLObjectFactory.getSVNRevision(revision1), url2,
JavaHLObjectFactory.getSVNRevision(revision2), new File(localPath).getAbsoluteFile(),
JavaHLObjectFactory.getSVNDepth(depth), !ignoreAncestry, force, dryRun, recordOnly);
} else if (isURL(path1)) {
SVNURL url1 = SVNURL.parseURIEncoded(path1);
File file2 = new File(path2).getAbsoluteFile();
differ.doMerge(url1, JavaHLObjectFactory.getSVNRevision(revision1), file2,
JavaHLObjectFactory.getSVNRevision(revision2), new File(localPath).getAbsoluteFile(),
JavaHLObjectFactory.getSVNDepth(depth), !ignoreAncestry, force, dryRun, recordOnly);
} else if (isURL(path2)) {
SVNURL url2 = SVNURL.parseURIEncoded(path2);
File file1 = new File(path1).getAbsoluteFile();
differ.doMerge(file1, JavaHLObjectFactory.getSVNRevision(revision1), url2,
JavaHLObjectFactory.getSVNRevision(revision2), new File(localPath).getAbsoluteFile(),
JavaHLObjectFactory.getSVNDepth(depth), !ignoreAncestry, force, dryRun, recordOnly);
} else {
File file1 = new File(path1).getAbsoluteFile();
File file2 = new File(path2).getAbsoluteFile();
differ.doMerge(file1, JavaHLObjectFactory.getSVNRevision(revision1),
file2, JavaHLObjectFactory.getSVNRevision(revision2),
new File(localPath).getAbsoluteFile(), JavaHLObjectFactory.getSVNDepth(depth),
!ignoreAncestry, force, dryRun, recordOnly);
}
} catch (SVNException e) {