return result;
}
private static String getPreviousLogPath(String path, SVNLogEntry logEntry, SVNNodeKind kind) throws SVNException {
String prevPath = null;
SVNLogEntryPath logPath = (SVNLogEntryPath) logEntry.getChangedPaths().get(path);
if (logPath != null) {
if (logPath.getType() != SVNLogEntryPath.TYPE_ADDED && logPath.getType() != SVNLogEntryPath.TYPE_REPLACED) {
return logPath.getPath();
}
if (logPath.getCopyPath() != null) {
return logPath.getCopyPath();
}
return null;
} else if (!logEntry.getChangedPaths().isEmpty()){
Map sortedMap = new SVNHashMap();
sortedMap.putAll(logEntry.getChangedPaths());
List pathsList = new ArrayList(sortedMap.keySet());
Collections.sort(pathsList, SVNPathUtil.PATH_COMPARATOR);
Collections.reverse(pathsList);
for(Iterator paths = pathsList.iterator(); paths.hasNext();) {
String p = (String) paths.next();
if (path.startsWith(p + "/")) {
SVNLogEntryPath lPath = (SVNLogEntryPath) sortedMap.get(p);
if (lPath.getCopyPath() != null) {
prevPath = SVNPathUtil.append(lPath.getCopyPath(), path.substring(p.length()));
break;
}
}
}
}