if (SVNFileType.getType(mergedFile) != SVNFileType.DIRECTORY) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR, "Cannot create directory ''{0}''", mergedFile);
SVNErrorManager.error(err, SVNLogType.DEFAULT);
}
}
ISVNEventHandler oldEventHandler = dir.getWCAccess().getEventHandler();
dir.getWCAccess().setEventHandler(null);
SVNWCManager.add(mergedFile, dir, copyFromURL, copyFromRevision, null);
dir.getWCAccess().setEventHandler(oldEventHandler);
}
return SVNStatusType.CHANGED;
} else if (fileType == SVNFileType.DIRECTORY) {
SVNEntry entry = getWCAccess().getEntry(mergedFile, false);
if (entry == null || entry.isScheduledForDeletion()) {
if (!myIsDryRun) {
ISVNEventHandler oldEventHandler = dir.getWCAccess().getEventHandler();
dir.getWCAccess().setEventHandler(null);
SVNWCManager.add(mergedFile, dir, copyFromURL, copyFromRevision, null);
dir.getWCAccess().setEventHandler(oldEventHandler);
}
if (myIsDryRun) {