public void opSetDirDepthTemp(File localAbspath, SVNDepth depth) throws SVNException { assert (isAbsolute(localAbspath)); assert (depth.getId() >= SVNDepth.EMPTY.getId() && depth.getId() <= SVNDepth.INFINITY.getId()); DirParsedInfo parseDir = parseDir(localAbspath, Mode.ReadWrite); SVNWCDbDir pdh = parseDir.wcDbDir; File localRelpath = parseDir.localRelPath; verifyDirUsable(pdh); updateDepthValues(localAbspath, pdh, localRelpath, depth); }
if (childKind == SVNWCDbKind.File || depth.getId() >= SVNDepth.IMMEDIATES.getId()) { if (matchesChangelist(childAbspath, changelists)) { nodeHandler.nodeFound(childAbspath, childKind); if (childKind == SVNWCDbKind.Dir && depth.getId() >= SVNDepth.IMMEDIATES.getId()) { SVNDepth depth_below_here = depth; if (depth.getId() == SVNDepth.IMMEDIATES.getId()) { depth_below_here = SVNDepth.EMPTY;
public void nodeWalkChildren(File localAbspath, ISVNWCNodeHandler nodeHandler, boolean showHidden, SVNDepth walkDepth, Collection<String> changelists) throws SVNException { assert (walkDepth != null && walkDepth.getId() >= SVNDepth.EMPTY.getId() && walkDepth.getId() <= SVNDepth.INFINITY.getId()); changelists = changelists != null && changelists.size() > 0 ? new HashSet<String>(changelists) : null; Structure<NodeInfo> nodeInfo = db.readInfo(localAbspath, NodeInfo.status, NodeInfo.kind); SVNWCDbKind kind = nodeInfo.<SVNWCDbKind>get(NodeInfo.kind); SVNWCDbStatus status = nodeInfo.<SVNWCDbStatus>get(NodeInfo.status); nodeInfo.release(); if (matchesChangelist(localAbspath, changelists)) { nodeHandler.nodeFound(localAbspath, kind); } if (kind == SVNWCDbKind.File || status == SVNWCDbStatus.NotPresent || status == SVNWCDbStatus.Excluded || status == SVNWCDbStatus.ServerExcluded) { return; } if (kind == SVNWCDbKind.Dir) { walkerHelper(localAbspath, nodeHandler, showHidden, walkDepth, changelists); return; } SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.NODE_UNKNOWN_KIND, "''{0}'' has an unrecognized node kind", localAbspath); SVNErrorManager.error(err, SVNLogType.WC); }
private void cropChildren(File localAbspath, SVNDepth depth) throws SVNException { assert (depth.getId() >= SVNDepth.EMPTY.getId() && depth.getId() <= SVNDepth.INFINITY.getId()); checkCancelled(); SVNDepth dirDepth = db.readInfo(localAbspath, InfoField.depth).depth; dirDepth = SVNDepth.INFINITY; if (dirDepth.getId() > depth.getId()) { db.opSetDirDepthTemp(localAbspath, depth); if (childStatus == SVNWCDbStatus.ServerExcluded || childStatus == SVNWCDbStatus.Excluded || childStatus == SVNWCDbStatus.NotPresent) { SVNDepth removeBelow = (kind == SVNWCDbKind.Dir) ? SVNDepth.IMMEDIATES : SVNDepth.FILES; if (depth.getId() < removeBelow.getId()) { db.opRemoveEntryTemp(localAbspath); if (depth.getId() < SVNDepth.IMMEDIATES.getId()) { try { removeFromRevisionControl(childAbspath, true, false);
if (depth.getId() == SVNDepth.EMPTY.getId()) { stmt = wcRoot.getSDb().getStatement(SVNWCDbStatements.INSERT_TARGET2); } else if (depth.getId() == SVNDepth.FILES.getId()){ stmt = wcRoot.getSDb().getStatement(SVNWCDbStatements.INSERT_TARGET_DEPTH_FILES); } else if (depth.getId() == SVNDepth.IMMEDIATES.getId()){ stmt = wcRoot.getSDb().getStatement(SVNWCDbStatements.INSERT_TARGET_DEPTH_IMMEDIATES); } else if (depth.getId() == SVNDepth.INFINITY.getId()){ stmt = wcRoot.getSDb().getStatement(SVNWCDbStatements.INSERT_TARGET_DEPTH_INFINITY);
path = path.replace(File.separatorChar, '/'); int depth = info.getDepth() != null ? info.getDepth().getId() : Depth.unknown; if (info.getKind() == SVNNodeKind.FILE) { depth = 0;
path = path.replace(File.separatorChar, '/'); int depth = info.getDepth() != null ? info.getDepth().getId() : Depth.unknown; return new Info2( path,
path = path.replace(File.separatorChar, '/'); int depth = info.getDepth() != null ? info.getDepth().getId() : Depth.unknown; return new Info2( path,
path = path.replace(File.separatorChar, '/'); int depth = info.getDepth() != null ? info.getDepth().getId() : Depth.unknown; return new Info2( path,