private SVNStatusType getStatusForObstructedOrMissing(String path) { File file = getFile(path); SVNEntry entry = null; try { entry = getWCAccess().getEntry(file, true); } catch (SVNException svne) { // } if (entry != null && entry.isAbsent()) { return SVNStatusType.MISSING; } SVNNodeKind expectedKind = getWorkingNodeKind(entry, path); SVNNodeKind diskKind = getDiskKind(path); if (entry != null && entry.isDirectory() && entry.isScheduledForDeletion() && diskKind == SVNNodeKind.DIR) { expectedKind = SVNNodeKind.DIR; } if (expectedKind == diskKind) { return SVNStatusType.INAPPLICABLE; } else if (diskKind == SVNNodeKind.NONE) { return SVNStatusType.MISSING; } return SVNStatusType.OBSTRUCTED; }
private SVNStatusType getStatusForObstructedOrMissing(String path) { File file = getFile(path); SVNEntry entry = null; try { entry = getWCAccess().getEntry(file, true); } catch (SVNException svne) { // } if (entry != null && entry.isAbsent()) { return SVNStatusType.MISSING; } SVNNodeKind expectedKind = getWorkingNodeKind(entry, path); SVNNodeKind diskKind = getDiskKind(path); if (entry != null && entry.isDirectory() && entry.isScheduledForDeletion() && diskKind == SVNNodeKind.DIR) { expectedKind = SVNNodeKind.DIR; } if (expectedKind == diskKind) { return SVNStatusType.INAPPLICABLE; } else if (diskKind == SVNNodeKind.NONE) { return SVNStatusType.MISSING; } return SVNStatusType.OBSTRUCTED; }
private SVNStatusType getStatusForObstructedOrMissing(String path) { File file = getFile(path); SVNEntry entry = null; try { entry = getWCAccess().getEntry(file, true); } catch (SVNException svne) { // } if (entry != null && entry.isAbsent()) { return SVNStatusType.MISSING; } SVNNodeKind expectedKind = getWorkingNodeKind(entry, path); SVNNodeKind diskKind = getDiskKind(path); if (entry != null && entry.isDirectory() && entry.isScheduledForDeletion() && diskKind == SVNNodeKind.DIR) { expectedKind = SVNNodeKind.DIR; } if (expectedKind == diskKind) { return SVNStatusType.INAPPLICABLE; } else if (diskKind == SVNNodeKind.NONE) { return SVNStatusType.MISSING; } return SVNStatusType.OBSTRUCTED; }