private void reportAddedFile(SVNDirectoryInfo info, String path, SVNEntry entry) throws SVNException {
if (entry.isCopied()) {
if (myIsCompareToBase) {
return;
}
reportModifiedFile(info, entry);
return;
}
SVNAdminArea dir = retrieve(info.myPath);
String name = SVNPathUtil.tail(path);
Map wcProps = null;
if (myIsCompareToBase) {
wcProps = dir.getBaseProperties(name).asMap();
} else {
wcProps = dir.getProperties(name).asMap();
}
String mimeType = (String) wcProps.get(SVNProperty.MIME_TYPE);
Map propDiff = computePropsDiff(new HashMap(), wcProps);
File sourceFile;
if (myIsCompareToBase) {
sourceFile = dir.getBaseFile(name, false);
} else {
sourceFile = detranslateFile(dir, name);
}
getDiffCallback().fileAdded(path, null, sourceFile, 0, entry.getRevision(), null, mimeType, null, propDiff);
}