private Collection getDirEntries(FSRevisionNode parent, SVNURL parentURL, int entryFields) throws SVNException { Map entries = parent.getDirEntries(myFSFS); Set keys = entries.keySet(); Iterator dirEntries = keys.iterator(); Collection dirEntriesList = new LinkedList(); while (dirEntries.hasNext()) { String name = (String) dirEntries.next(); FSEntry repEntry = (FSEntry) entries.get(name); if (repEntry != null) { dirEntriesList.add(buildDirEntry(repEntry, parentURL, null, entryFields)); } } return dirEntriesList; }
private Collection getDirEntries(FSRevisionNode parent, SVNURL parentURL, int entryFields) throws SVNException { Map entries = parent.getDirEntries(myFSFS); Set keys = entries.keySet(); Iterator dirEntries = keys.iterator(); Collection dirEntriesList = new LinkedList(); while (dirEntries.hasNext()) { String name = (String) dirEntries.next(); FSEntry repEntry = (FSEntry) entries.get(name); if (repEntry != null) { dirEntriesList.add(buildDirEntry(repEntry, parentURL, null, entryFields)); } } return dirEntriesList; }
private Collection getDirEntries(FSRevisionNode parent, SVNURL parentURL, boolean includeLogs) throws SVNException { Map entries = parent.getDirEntries(myFSFS); Set keys = entries.keySet(); Iterator dirEntries = keys.iterator(); Collection dirEntriesList = new LinkedList(); while (dirEntries.hasNext()) { String name = (String) dirEntries.next(); FSEntry repEntry = (FSEntry) entries.get(name); if (repEntry != null) { dirEntriesList.add(buildDirEntry(repEntry, parentURL, null, includeLogs)); } } return dirEntriesList; }
private Collection getDirEntries(FSRevisionNode parent, SVNURL parentURL, int entryFields) throws SVNException { Map entries = parent.getDirEntries(myFSFS); Set keys = entries.keySet(); Iterator dirEntries = keys.iterator(); Collection dirEntriesList = new LinkedList(); while (dirEntries.hasNext()) { String name = (String) dirEntries.next(); FSEntry repEntry = (FSEntry) entries.get(name); if (repEntry != null) { dirEntriesList.add(buildDirEntry(repEntry, parentURL, null, entryFields)); } } return dirEntriesList; }
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 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 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(); } }