try {
int admDepth = getAdminDepth(depth);
SVNAdminAreaInfo info = wcAccess.openAnchor(path1, false, admDepth);
wcAccess.getVersionedEntry(path1, false);
long rev = getRevisionNumber(revision1, null, path1);
AbstractDiffCallback callback = new SVNDiffCallback(info.getAnchor(), getDiffGenerator(), rev, -1,
result);
SVNDiffEditor editor = new SVNDiffEditor(wcAccess, info, callback, useAncestry, false, false, depth,
changeLists);
try {
editor.closeEdit();