throw new SVNImporterException(MapperMessages.SVNModelMapper_cannotCreateRevision);
} else if (deleted) {
newRevision.setState(MapperMessages.SVNModelMapper_DELETED);
} else if (copyPath != null) {
// If copy path is not null, it means that the current file version is a copy from a preexisting file
SVNVersionedFile originalFile = fFiles.get(copyPath);
if (originalFile != null) {
file.setCopiedFrom(originalFile);
originalFile.setCopiedTo(file);
// I get the latest version of the file we are copying from so that I can link to it
// with the "ancestor" property
newRevision.setAncestor((SVNRevision) originalFile.getLatestRevision());
originalFile.getLatestRevision().setState(MapperMessages.SVNModelMapper_MOVED);
fRevisionElemsCache.add(originalFile.getLatestRevision());
} else {
LOGGER.warn(NLS.bind(MapperMessages.SVNModelMapper_fileNotExists, file.getPath(), copyPath));
}
}
// If branchName is not null, it means that the SVNRevision I'm creating is being committed to a branch, which