} else {
if (related) {
getEditor().openFile(editPath, sourceRevision);
diffFiles(sourceRevision, sourcePath, targetPath, editPath, pathInfo != null ? pathInfo.getLockToken() : null);
} else {
SVNLocationEntry copyFromFile = addFileSmartly(editPath, targetPath);
String copyFromPath = copyFromFile.getPath();
long copyFromRevision = copyFromFile.getRevision();
if (copyFromPath == null) {
diffFiles(sourceRevision, sourcePath, targetPath, editPath,
pathInfo != null ? pathInfo.getLockToken() : null);
} else {
diffFiles(copyFromRevision, copyFromPath, targetPath, editPath,