public long getDir(String path, long revision, Map properties, ISVNDirEntryHandler handler) throws SVNException { try { openRepository(); if (!SVNRepository.isValidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } String repositoryPath = getRepositoryPath(path); FSRevisionRoot root = myFSFS.createRevisionRoot(revision); FSRevisionNode parent = root.getRevisionNode(repositoryPath); if (handler != null) { SVNURL parentURL = getLocation().appendPath(path, false); Collection entriesCollection = getDirEntries(parent, parentURL, false); Iterator entries = entriesCollection.iterator(); while (entries.hasNext()) { SVNDirEntry entry = (SVNDirEntry) entries.next(); handler.handleDirEntry(entry); } } if (properties != null) { properties.putAll(collectProperties(parent)); } return revision; } finally { closeRepository(); } }
public long getDir(String path, long revision, SVNProperties properties, int entryFields, ISVNDirEntryHandler handler) throws SVNException { try { openRepository(); if (!SVNRepository.isValidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } String repositoryPath = getRepositoryPath(path); FSRevisionRoot root = myFSFS.createRevisionRoot(revision); FSRevisionNode parent = root.getRevisionNode(repositoryPath); if (handler != null) { SVNURL parentURL = getLocation().appendPath(path, false); Collection entriesCollection = getDirEntries(parent, parentURL, entryFields); Iterator entries = entriesCollection.iterator(); while (entries.hasNext()) { SVNDirEntry entry = (SVNDirEntry) entries.next(); handler.handleDirEntry(entry); } } if (properties != null) { properties.putAll(collectProperties(parent)); } return revision; } finally { closeRepository(); } }
public long getDir(String path, long revision, SVNProperties properties, int entryFields, ISVNDirEntryHandler handler) throws SVNException { try { openRepository(); if (!SVNRepository.isValidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } String repositoryPath = getRepositoryPath(path); FSRevisionRoot root = myFSFS.createRevisionRoot(revision); FSRevisionNode parent = root.getRevisionNode(repositoryPath); if (handler != null) { SVNURL parentURL = getLocation().appendPath(path, false); Collection entriesCollection = getDirEntries(parent, parentURL, entryFields); Iterator entries = entriesCollection.iterator(); while (entries.hasNext()) { SVNDirEntry entry = (SVNDirEntry) entries.next(); handler.handleDirEntry(entry); } } if (properties != null) { properties.putAll(collectProperties(parent)); } return revision; } finally { closeRepository(); } }
public long getDir(String path, long revision, SVNProperties properties, int entryFields, ISVNDirEntryHandler handler) throws SVNException { try { openRepository(); if (!SVNRepository.isValidRevision(revision)) { revision = myFSFS.getYoungestRevision(); } String repositoryPath = getRepositoryPath(path); FSRevisionRoot root = myFSFS.createRevisionRoot(revision); FSRevisionNode parent = root.getRevisionNode(repositoryPath); if (handler != null) { SVNURL parentURL = getLocation().appendPath(path, false); Collection entriesCollection = getDirEntries(parent, parentURL, entryFields); Iterator entries = entriesCollection.iterator(); while (entries.hasNext()) { SVNDirEntry entry = (SVNDirEntry) entries.next(); handler.handleDirEntry(entry); } } if (properties != null) { properties.putAll(collectProperties(parent)); } return revision; } finally { closeRepository(); } }
properties.putAll(collectProperties(revNode));
properties.put(SVNProperty.REVISION, Long.toString(revision)); properties.putAll(collectProperties(revNode));
properties.put(SVNProperty.REVISION, Long.toString(revision)); properties.putAll(collectProperties(revNode));
properties.put(SVNProperty.REVISION, Long.toString(revision)); properties.putAll(collectProperties(revNode));