private FSEntry parseRepEntryValue(String name, String value) { if (value == null) { return null; } int spaceInd = value.indexOf(' '); if (spaceInd == -1) { return null; } String kind = value.substring(0, spaceInd); String rawID = value.substring(spaceInd + 1); SVNNodeKind type = SVNNodeKind.parseKind(kind); FSID id = FSID.fromString(rawID); if ((type != SVNNodeKind.DIR && type != SVNNodeKind.FILE) || id == null) { return null; } return new FSEntry(id, type, name); }
private FSEntry parseRepEntryValue(String name, String value) { if (value == null) { return null; } int spaceInd = value.indexOf(' '); if (spaceInd == -1) { return null; } String kind = value.substring(0, spaceInd); String rawID = value.substring(spaceInd + 1); SVNNodeKind type = SVNNodeKind.parseKind(kind); FSID id = FSID.fromString(rawID); if ((type != SVNNodeKind.DIR && type != SVNNodeKind.FILE) || id == null) { return null; } return new FSEntry(id, type, name); }
private FSEntry parseRepEntryValue(String name, String value) { if (value == null) { return null; } int spaceInd = value.indexOf(' '); if (spaceInd == -1) { return null; } String kind = value.substring(0, spaceInd); String rawID = value.substring(spaceInd + 1); SVNNodeKind type = SVNNodeKind.parseKind(kind); FSID id = FSID.fromString(rawID); if ((type != SVNNodeKind.DIR && type != SVNNodeKind.FILE) || id == null) { return null; } return new FSEntry(id, type, name); }
private FSEntry parseRepEntryValue(String name, String value) { if (value == null) { return null; } int spaceInd = value.indexOf(' '); if (spaceInd == -1) { return null; } String kind = value.substring(0, spaceInd); String rawID = value.substring(spaceInd + 1); SVNNodeKind type = SVNNodeKind.parseKind(kind); FSID id = FSID.fromString(rawID); if ((type != SVNNodeKind.DIR && type != SVNNodeKind.FILE) || id == null) { return null; } return new FSEntry(id, type, name); }
private FSEntry fakeDirEntry(String reposPath, FSRoot root) throws SVNException { if (root.checkNodeKind(reposPath) == SVNNodeKind.NONE) { return null; } FSRevisionNode node = root.getRevisionNode(reposPath); FSEntry dirEntry = new FSEntry(node.getId(), node.getType(), SVNPathUtil.tail(node.getCreatedPath())); return dirEntry; }
private FSEntry fakeDirEntry(String reposPath, FSRevisionRoot root) throws SVNException { if (root.checkNodeKind(reposPath) == SVNNodeKind.NONE) { return null; } FSRevisionNode node = root.getRevisionNode(reposPath); FSEntry dirEntry = new FSEntry(node.getId(), node.getType(), SVNPathUtil.tail(node.getCreatedPath())); return dirEntry; }
private FSEntry fakeDirEntry(String reposPath, FSRevisionRoot root) throws SVNException { if (root.checkNodeKind(reposPath) == SVNNodeKind.NONE) { return null; } FSRevisionNode node = root.getRevisionNode(reposPath); FSEntry dirEntry = new FSEntry(node.getId(), node.getType(), SVNPathUtil.tail(node.getCreatedPath())); return dirEntry; }
private FSEntry fakeDirEntry(String reposPath, FSRevisionRoot root) throws SVNException { if (root.checkNodeKind(reposPath) == SVNNodeKind.NONE) { return null; } FSRevisionNode node = root.getRevisionNode(reposPath); FSEntry dirEntry = new FSEntry(node.getId(), node.getType(), SVNPathUtil.tail(node.getCreatedPath())); return dirEntry; }
public SVNDirEntry getDir(String path, long revision, boolean includeCommitMessages, Collection entries) throws SVNException { try { openRepository(); if (!SVNRepository.isValidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } String repositoryPath = getRepositoryPath(path); SVNURL parentURL = getLocation().appendPath(path, false); FSRevisionRoot root = myFSFS.createRevisionRoot(revision); FSRevisionNode parent = root.getRevisionNode(repositoryPath); if (entries != null) { entries.addAll(getDirEntries(parent, parentURL, SVNDirEntry.DIRENT_ALL)); } SVNDirEntry parentDirEntry = buildDirEntry(new FSEntry(parent.getId(), parent.getType(), ""), parentURL, parent, SVNDirEntry.DIRENT_ALL); return parentDirEntry; } finally { closeRepository(); } }
public SVNDirEntry getDir(String path, long revision, boolean includeCommitMessages, Collection entries) throws SVNException { try { openRepository(); if (!SVNRepository.isValidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } String repositoryPath = getRepositoryPath(path); SVNURL parentURL = getLocation().appendPath(path, false); FSRevisionRoot root = myFSFS.createRevisionRoot(revision); FSRevisionNode parent = root.getRevisionNode(repositoryPath); if (entries != null) { entries.addAll(getDirEntries(parent, parentURL, SVNDirEntry.DIRENT_ALL)); } SVNDirEntry parentDirEntry = buildDirEntry(new FSEntry(parent.getId(), parent.getType(), ""), parentURL, parent, SVNDirEntry.DIRENT_ALL); return parentDirEntry; } finally { closeRepository(); } }
public SVNDirEntry getDir(String path, long revision, boolean includeCommitMessages, Collection entries) throws SVNException { try { openRepository(); if (!SVNRepository.isValidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } String repositoryPath = getRepositoryPath(path); SVNURL parentURL = getLocation().appendPath(path, false); FSRevisionRoot root = myFSFS.createRevisionRoot(revision); FSRevisionNode parent = root.getRevisionNode(repositoryPath); if (entries != null) { entries.addAll(getDirEntries(parent, parentURL, SVNDirEntry.DIRENT_ALL)); } SVNDirEntry parentDirEntry = buildDirEntry(new FSEntry(parent.getId(), parent.getType(), ""), parentURL, parent, SVNDirEntry.DIRENT_ALL); return parentDirEntry; } finally { closeRepository(); } }
public SVNDirEntry getDir(String path, long revision, boolean includeCommitMessages, Collection entries) throws SVNException { try { openRepository(); if (!SVNRepository.isValidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } String repositoryPath = getRepositoryPath(path); SVNURL parentURL = getLocation().appendPath(path, false); FSRevisionRoot root = myFSFS.createRevisionRoot(revision); FSRevisionNode parent = root.getRevisionNode(repositoryPath); if (entries != null) { entries.addAll(getDirEntries(parent, parentURL, includeCommitMessages)); } SVNDirEntry parentDirEntry = buildDirEntry(new FSEntry(parent.getId(), parent.getType(), ""), parentURL, parent, false); return parentDirEntry; } finally { closeRepository(); } }
public SVNDirEntry info(String path, long revision) throws SVNException { try { openRepository(); path = getRepositoryPath(path); if (FSRepository.isInvalidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } FSRevisionRoot root = myFSFS.createRevisionRoot(revision); if (root.checkNodeKind(path) == SVNNodeKind.NONE) { return null; } FSRevisionNode revNode = root.getRevisionNode(path); String fullPath = getFullPath(path); String parentFullPath = "/".equals(path) ? fullPath : SVNPathUtil.removeTail(fullPath); SVNURL url = getLocation().setPath(parentFullPath, false); String name = "/".equals(path) ? "" : SVNPathUtil.tail(path); FSEntry fsEntry = new FSEntry(revNode.getId(), revNode.getType(), name); SVNDirEntry entry = buildDirEntry(fsEntry, url, revNode, SVNDirEntry.DIRENT_ALL); return entry; } finally { closeRepository(); } }
public SVNDirEntry info(String path, long revision) throws SVNException { try { openRepository(); path = getRepositoryPath(path); if (FSRepository.isInvalidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } FSRevisionRoot root = myFSFS.createRevisionRoot(revision); if (root.checkNodeKind(path) == SVNNodeKind.NONE) { return null; } FSRevisionNode revNode = root.getRevisionNode(path); String fullPath = getFullPath(path); String parentFullPath = "/".equals(path) ? fullPath : SVNPathUtil.removeTail(fullPath); SVNURL url = getLocation().setPath(parentFullPath, false); String name = SVNPathUtil.tail(path); FSEntry fsEntry = new FSEntry(revNode.getId(), revNode.getType(), name); SVNDirEntry entry = buildDirEntry(fsEntry, url, revNode, SVNDirEntry.DIRENT_ALL); return entry; } finally { closeRepository(); } }
public SVNDirEntry info(String path, long revision) throws SVNException { try { openRepository(); path = getRepositoryPath(path); if (FSRepository.isInvalidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } FSRevisionRoot root = myFSFS.createRevisionRoot(revision); if (root.checkNodeKind(path) == SVNNodeKind.NONE) { return null; } FSRevisionNode revNode = root.getRevisionNode(path); String fullPath = getFullPath(path); String parentFullPath = "/".equals(path) ? fullPath : SVNPathUtil.removeTail(fullPath); SVNURL url = getLocation().setPath(parentFullPath, false); String name = SVNPathUtil.tail(path); FSEntry fsEntry = new FSEntry(revNode.getId(), revNode.getType(), name); SVNDirEntry entry = buildDirEntry(fsEntry, url, revNode, false); return entry; } finally { closeRepository(); } }
public SVNDirEntry info(String path, long revision) throws SVNException { try { openRepository(); path = getRepositoryPath(path); if (FSRepository.isInvalidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } FSRevisionRoot root = myFSFS.createRevisionRoot(revision); if (root.checkNodeKind(path) == SVNNodeKind.NONE) { return null; } FSRevisionNode revNode = root.getRevisionNode(path); String fullPath = getFullPath(path); String parentFullPath = "/".equals(path) ? fullPath : SVNPathUtil.removeTail(fullPath); SVNURL url = getLocation().setPath(parentFullPath, false); String name = SVNPathUtil.tail(path); FSEntry fsEntry = new FSEntry(revNode.getId(), revNode.getType(), name); SVNDirEntry entry = buildDirEntry(fsEntry, url, revNode, SVNDirEntry.DIRENT_ALL); return entry; } finally { closeRepository(); } }
SVNProperties.appendProperty(entryName, kind + " " + entryId.toString(), dst); if (dirContents != null) { dirContents.put(entryName, new FSEntry(entryId, kind, entryName));
SVNWCProperties.appendProperty(entryName, SVNPropertyValue.create(kind + " " + entryId.toString()), dst); if (dirContents != null) { dirContents.put(entryName, new FSEntry(entryId, kind, entryName));
SVNWCProperties.appendProperty(entryName, SVNPropertyValue.create(kind + " " + entryId.toString()), dst); if (dirContents != null) { dirContents.put(entryName, new FSEntry(entryId, kind, entryName));
SVNWCProperties.appendProperty(entryName, SVNPropertyValue.create(kind + " " + entryId.toString()), dst); if (dirContents != null) { dirContents.put(entryName, new FSEntry(entryId, kind, entryName));