boolean isPropsModified = false;
boolean isLocked = false;
boolean isSwitched = false;
boolean isSpecial = false;
SVNStatusType textStatus = SVNStatusType.STATUS_NORMAL;
SVNStatusType propStatus = SVNStatusType.STATUS_NONE;
SVNLock repositoryLock = null;
if (myRepositoryLocks != null) {
SVNURL url = null;
if (entry != null && entry.getSVNURL() != null) {
url = entry.getSVNURL();
} else if (parentEntry != null && parentEntry.getSVNURL() != null) {
url = parentEntry.getSVNURL().appendPath(file.getName(), false);
}
if (url != null) {
repositoryLock = getLock(url);
}
}
SVNFileType fileType = SVNFileType.getType(file);
special = SVNFileUtil.isWindows ? false : fileType == SVNFileType.SYMLINK;
if (fileKind == SVNNodeKind.UNKNOWN || fileKind == null) {
fileKind = SVNFileType.getNodeKind(fileType);
}
if (entry == null) {
SVNStatus status = new SVNStatus(null, file, SVNNodeKind.NONE,
SVNRevision.UNDEFINED, SVNRevision.UNDEFINED,
null, null, SVNStatusType.STATUS_NONE, SVNStatusType.STATUS_NONE,
SVNStatusType.STATUS_NONE, SVNStatusType.STATUS_NONE, false,
false, false, null, null, null, null,
null, SVNRevision.UNDEFINED,
repositoryLock, null, null);
status.setRemoteStatus(SVNStatusType.STATUS_NONE, SVNStatusType.STATUS_NONE, repositoryLock, SVNNodeKind.NONE);
SVNStatusType text = SVNStatusType.STATUS_NONE;
if (fileType != SVNFileType.NONE) {
text = isIgnored ? SVNStatusType.STATUS_IGNORED : SVNStatusType.STATUS_UNVERSIONED;
}
status.setContentsStatus(text);
return status;