/** * Returns the last modified local time of the file item. * Irrelevant for directories (for directories returns <code>Date(0)</code>). * * @return last modified time of the file */ public Date getWorkingContentsDate() { if (myLocalContentsDate == null) { if (getFile() != null && getKind() == SVNNodeKind.FILE) { myLocalContentsDate = new Date(getFile().lastModified()); } else { myLocalContentsDate = new Date(0); } } return myLocalContentsDate; }
/** * Returns the last modified local time of the file item. * Irrelevant for directories (for directories returns <code>Date(0)</code>). * * @return last modified time of the file */ public Date getWorkingContentsDate() { if (myLocalContentsDate == null) { if (getFile() != null && getKind() == SVNNodeKind.FILE) { myLocalContentsDate = new Date(getFile().lastModified()); } else { myLocalContentsDate = new Date(0); } } return myLocalContentsDate; }
/** * Returns the last modified local time of the file item. * Irrelevant for directories (for directories returns <code>Date(0)</code>). * * @return last modified time of the file */ public Date getWorkingContentsDate() { if (myLocalContentsDate == null) { if (getFile() != null && getKind() == SVNNodeKind.FILE) { myLocalContentsDate = new Date(getFile().lastModified()); } else { myLocalContentsDate = new Date(0); } } return myLocalContentsDate; }
/** * Returns the last modified local time of file or directory * properties. * * @return last modified time of the item properties */ public Date getWorkingPropertiesDate() { if (myLocalPropertiesDate == null) { File propFile = null; if (getFile() != null && getKind() == SVNNodeKind.DIR) { propFile = new File(getFile().getAbsoluteFile().getParentFile(), SVNFileUtil.getAdminDirectoryName()); propFile = new File(propFile, "dir-props"); } else if (getFile() != null && getKind() == SVNNodeKind.FILE) { propFile = new File(getFile().getAbsoluteFile().getParentFile(), SVNFileUtil.getAdminDirectoryName()); propFile = new File(propFile, "props/" + getFile().getName() + ".svn-work"); } myLocalContentsDate = propFile != null ? new Date(propFile.lastModified()) : new Date(0); } return myLocalPropertiesDate; }
/** * Returns the last modified local time of file or directory * properties. * * @return last modified time of the item properties */ public Date getWorkingPropertiesDate() { if (myLocalPropertiesDate == null) { File propFile = null; if (getFile() != null && getKind() == SVNNodeKind.DIR) { propFile = new File(getFile().getAbsoluteFile().getParentFile(), SVNFileUtil.getAdminDirectoryName()); propFile = new File(propFile, "dir-props"); } else if (getFile() != null && getKind() == SVNNodeKind.FILE) { propFile = new File(getFile().getAbsoluteFile().getParentFile(), SVNFileUtil.getAdminDirectoryName()); propFile = new File(propFile, "props/" + getFile().getName() + ".svn-work"); } myLocalPropertiesDate = propFile != null ? new Date(propFile.lastModified()) : new Date(0); } return myLocalPropertiesDate; }
/** * Returns the last modified local time of file or directory * properties. * * @return last modified time of the item properties */ public Date getWorkingPropertiesDate() { if (myLocalPropertiesDate == null) { File propFile = null; if (getFile() != null && getKind() == SVNNodeKind.DIR) { propFile = new File(getFile().getAbsoluteFile().getParentFile(), SVNFileUtil.getAdminDirectoryName()); propFile = new File(propFile, "dir-props"); } else if (getFile() != null && getKind() == SVNNodeKind.FILE) { propFile = new File(getFile().getAbsoluteFile().getParentFile(), SVNFileUtil.getAdminDirectoryName()); propFile = new File(propFile, "props/" + getFile().getName() + ".svn-work"); } myLocalPropertiesDate = propFile != null ? new Date(propFile.lastModified()) : new Date(0); } return myLocalPropertiesDate; }
/** * Returns the last modified local time of the file item. Irrelevant for * directories (for directories returns <code>Date(0)</code>). * * @return last modified time of the file */ public Date getWorkingContentsDate() { if (myLocalContentsDate == null) { if (getFile() != null && getKind() == SVNNodeKind.FILE) { myLocalContentsDate = new Date(SVNFileUtil.getFileLastModified(getFile())); } else { myLocalContentsDate = new Date(0); } } return myLocalContentsDate; }
/** * Returns the last modified local time of file or directory properties. * * @return last modified time of the item properties */ public Date getWorkingPropertiesDate() { if (myLocalPropertiesDate == null) { File propFile = null; if (getFile() != null && getKind() == SVNNodeKind.DIR) { propFile = new File(getFile().getAbsoluteFile(), SVNFileUtil.getAdminDirectoryName()); propFile = new File(propFile, "dir-props"); } else if (getFile() != null && getKind() == SVNNodeKind.FILE) { propFile = new File(getFile().getAbsoluteFile().getParentFile(), SVNFileUtil.getAdminDirectoryName()); propFile = new File(propFile, "props/" + getFile().getName() + ".svn-work"); } myLocalPropertiesDate = propFile != null ? new Date(SVNFileUtil.getFileLastModified(propFile)) : new Date(0); } return myLocalPropertiesDate; }
private void handleStatusHash(SVNEntry dirEntry, Map hash, boolean deleted, boolean descend) throws SVNException { ISVNStatusHandler handler = deleted ? this : getDefaultHandler(); for(Iterator paths = hash.keySet().iterator(); paths.hasNext();) { File path = (File) paths.next(); SVNStatus status = (SVNStatus) hash.get(path); if (getWCAccess().isMissing(path)) { status.setContentsStatus(SVNStatusType.STATUS_MISSING); } else if (descend && status.getEntry() != null && status.getKind() == SVNNodeKind.DIR) { SVNAdminArea dir = getWCAccess().retrieve(path); getDirStatus(dirEntry, dir, null, true, isReportAll(), isNoIgnore(), null, true, handler); } if (deleted) { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); } if (isSendableStatus(status)) { handler.handleStatus(status); } } }
private void handleStatusHash(SVNEntry dirEntry, Map hash, boolean deleted, SVNDepth depth) throws SVNException { ISVNStatusHandler handler = deleted ? this : getDefaultHandler(); for(Iterator paths = hash.keySet().iterator(); paths.hasNext();) { File path = (File) paths.next(); SVNStatus status = (SVNStatus) hash.get(path); if (status.getContentsStatus() != SVNStatusType.STATUS_OBSTRUCTED && status.getContentsStatus() != SVNStatusType.STATUS_MISSING && status.getEntry() != null && status.getKind() == SVNNodeKind.DIR && (depth == SVNDepth.UNKNOWN || depth == SVNDepth.IMMEDIATES || depth == SVNDepth.INFINITY)) { SVNAdminArea dir = getWCAccess().retrieve(path); SVNDepth depthMinusOne = depth; if (depthMinusOne == SVNDepth.IMMEDIATES) { depthMinusOne = SVNDepth.EMPTY; } getDirStatus(dirEntry, dir, null, depthMinusOne, isReportAll(), isNoIgnore(), null, true, handler); } if (deleted) { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); } if (isSendableStatus(status)) { handler.handleStatus(status); } } }
private void handleStatusHash(SVNEntry dirEntry, Map hash, boolean deleted, SVNDepth depth) throws SVNException { ISVNStatusHandler handler = deleted ? this : getDefaultHandler(); for(Iterator paths = hash.keySet().iterator(); paths.hasNext();) { File path = (File) paths.next(); SVNStatus status = (SVNStatus) hash.get(path); if (status.getContentsStatus() != SVNStatusType.STATUS_OBSTRUCTED && status.getContentsStatus() != SVNStatusType.STATUS_MISSING && status.getEntry() != null && status.getKind() == SVNNodeKind.DIR && (depth == SVNDepth.UNKNOWN || depth == SVNDepth.IMMEDIATES || depth == SVNDepth.INFINITY)) { SVNAdminArea dir = getWCAccess().retrieve(path); SVNDepth depthMinusOne = depth; if (depthMinusOne == SVNDepth.IMMEDIATES) { depthMinusOne = SVNDepth.EMPTY; } getDirStatus(dirEntry, dir, null, depthMinusOne, isReportAll(), isNoIgnore(), null, true, handler); } if (deleted) { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); } if (isSendableStatus(status)) { handler.handleStatus(status); } } }
private void handleStatusHash(SVNEntry dirEntry, Map hash, boolean deleted, SVNDepth depth) throws SVNException { ISVNStatusHandler handler = deleted ? this : getDefaultHandler(); for(Iterator paths = hash.keySet().iterator(); paths.hasNext();) { File path = (File) paths.next(); SVNStatus status = (SVNStatus) hash.get(path); if (status.getContentsStatus() != SVNStatusType.STATUS_OBSTRUCTED && status.getContentsStatus() != SVNStatusType.STATUS_MISSING && status.getEntry() != null && status.getKind() == SVNNodeKind.DIR && (depth == SVNDepth.UNKNOWN || depth == SVNDepth.IMMEDIATES || depth == SVNDepth.INFINITY)) { SVNAdminArea dir = getWCAccess().retrieve(path); SVNDepth depthMinusOne = depth; if (depthMinusOne == SVNDepth.IMMEDIATES) { depthMinusOne = SVNDepth.EMPTY; } getDirStatus(dirEntry, dir, null, depthMinusOne, isReportAll(), isNoIgnore(), null, true, handler); } if (deleted) { status.setRemoteStatus(SVNStatusType.STATUS_DELETED, null, null, null); } if (isSendableStatus(status)) { handler.handleStatus(status); } } }
textStatus != SVNStatusType.STATUS_EXTERNAL && textStatus != SVNStatusType.STATUS_IGNORED && parentStatus.getKind() == SVNNodeKind.DIR && (isDescend() || myParent == null)) { SVNAdminArea dir = getWCAccess().retrieve(myPath);
textStatus != SVNStatusType.STATUS_EXTERNAL && textStatus != SVNStatusType.STATUS_IGNORED && parentStatus.getKind() == SVNNodeKind.DIR && (myDepth == SVNDepth.UNKNOWN || myDepth == SVNDepth.FILES ||
textStatus != SVNStatusType.STATUS_EXTERNAL && textStatus != SVNStatusType.STATUS_IGNORED && parentStatus.getKind() == SVNNodeKind.DIR && (myDepth == SVNDepth.UNKNOWN || myDepth == SVNDepth.FILES ||
url = status.getRemoteURL().toString(); int nodeKind = getNodeKind(status.getKind()); if (status.getContentsStatus() == SVNStatusType.STATUS_IGNORED) { nodeKind = NodeKind.unknown;
SVNStatus tgtStatus = (SVNStatus) myDirectoryInfo.myChildrenStatuses.get(targetPath); if (tgtStatus != null) { if (tgtStatus.getKind() == SVNNodeKind.DIR) { SVNAdminArea dir = getWCAccess().retrieve(targetPath); getDirStatus(null, dir, null, getDepth(), isReportAll(), isNoIgnore(), null, true, getDefaultHandler());
SVNStatus tgtStatus = (SVNStatus) myDirectoryInfo.myChildrenStatuses.get(targetPath); if (tgtStatus != null) { if (tgtStatus.getKind() == SVNNodeKind.DIR) { SVNAdminArea dir = getWCAccess().retrieve(targetPath); getDirStatus(null, dir, null, getDepth(), isReportAll(), isNoIgnore(), null, true, getDefaultHandler());
SVNStatus tgtStatus = (SVNStatus) myDirectoryInfo.myChildrenStatuses.get(targetPath); if (tgtStatus != null) { if (tgtStatus.getKind() == SVNNodeKind.DIR) { SVNAdminArea dir = getWCAccess().retrieve(targetPath); getDirStatus(null, dir, null, getDepth(), isReportAll(), isNoIgnore(), null, true, getDefaultHandler());
result.setKind(status.getKind()); result.setLock(status.getLocalLock());