This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
FileInformation getCachedStatus(File file) {
File parent = file.getParentFile();
if (parent == null) return FileStatusCache.FILE_INFORMATION_NOTMANAGED_DIRECTORY;
if (file.isDirectory()) {
if (hg.isAdministrative(file) || HgUtils.isIgnored(file)) {
return FileStatusCache.FILE_INFORMATION_EXCLUDED_DIRECTORY;
} else {
return FileStatusCache.FILE_INFORMATION_UPTODATE_DIRECTORY;
}
Map<File, FileInformation> files = (Map<File, FileInformation>) turbo.readEntry(parent, FILE_STATUS_MAP);
return files != null ? files.get(file) : null;