public void receive(SvnTarget target, SvnInfo object) throws SVNException { handler.handleInfo(SvnCodec.info(object)); } });
public void receive(SvnTarget target, SvnInfo object) throws SVNException { handler.handleInfo(SvnCodec.info(object)); } });
private void reportEntry(File path, SVNEntry entry, ISVNInfoHandler handler) throws SVNException { if (entry.isDirectory() && !"".equals(entry.getName())) { return; } handler.handleInfo(SVNInfo.createInfo(path, entry)); }
private void reportEntry(File path, SVNEntry entry, ISVNInfoHandler handler) throws SVNException { if (entry.isDirectory() && !"".equals(entry.getName())) { return; } handler.handleInfo(SVNInfo.createInfo(path, entry)); }
private void reportEntry(File path, SVNEntry entry, ISVNInfoHandler handler) throws SVNException { if (entry.isDirectory() && !"".equals(entry.getName())) { return; } handler.handleInfo(SVNInfo.createInfo(path, entry)); }
private void reportEntry(File path, SVNEntry entry, ISVNInfoHandler handler) throws SVNException { if (entry.isDirectory() && !"".equals(entry.getName())) { return; } handler.handleInfo(SVNInfo.createInfo(path, entry)); }
public void handleError(File path, SVNErrorMessage error) throws SVNException { if (error != null && error.getErrorCode() == SVNErrorCode.UNVERSIONED_RESOURCE) { SVNAdminArea dir = wcAccess.probeTry(path.getParentFile(), false, 0); SVNTreeConflictDescription tc = dir.getTreeConflict(path.getName()); if (tc != null) { SVNInfo info = SVNInfo.createInfo(path, tc); handler.handleInfo(info); return; } } SVNErrorManager.error(error, SVNLogType.WC); } }, false, depth);
public void handleError(File path, SVNErrorMessage error) throws SVNException { if (error != null && error.getErrorCode() == SVNErrorCode.UNVERSIONED_RESOURCE) { SVNAdminArea dir = wcAccess.probeTry(path.getParentFile(), false, 0); SVNTreeConflictDescription tc = dir.getTreeConflict(path.getName()); if (tc != null) { SVNInfo info = SVNInfo.createInfo(path, tc); handler.handleInfo(info); return; } } SVNErrorManager.error(error, SVNLogType.WC); } }, false, depth);
private void collectInfo(SVNRepository repos, SVNDirEntry entry, SVNRevision rev, String path, SVNURL root, String uuid, SVNURL url, Map locks, boolean recursive, ISVNInfoHandler handler) throws SVNException { checkCancelled(); String displayPath = repos.getFullPath(path); displayPath = displayPath.substring(repos.getLocation().getPath().length()); if ("".equals(displayPath) || "/".equals(displayPath)) { displayPath = path; } handler.handleInfo(SVNInfo.createInfo(displayPath, root, uuid, url, rev, entry, (SVNLock) locks.get(path))); if (entry.getKind() == SVNNodeKind.DIR && recursive) { Collection children = repos.getDir(path, rev.getNumber(), null, new ArrayList()); for (Iterator ents = children.iterator(); ents.hasNext();) { SVNDirEntry child = (SVNDirEntry) ents.next(); SVNURL childURL = url.appendPath(child.getName(), false); collectInfo(repos, child, rev, SVNPathUtil.append(path, child.getName()), root, uuid, childURL, locks, recursive, handler); } } }
private void pushDirInfo(SVNRepository repos, SVNRevision rev, String path, SVNURL root, String uuid, SVNURL url, Map locks, SVNDepth depth, ISVNInfoHandler handler) throws SVNException { Collection children = repos.getDir(path, rev.getNumber(), null, SVNDirEntry.DIRENT_KIND | SVNDirEntry.DIRENT_CREATED_REVISION | SVNDirEntry.DIRENT_TIME | SVNDirEntry.DIRENT_LAST_AUTHOR, new ArrayList()); for (Iterator ents = children.iterator(); ents.hasNext();) { checkCancelled(); SVNDirEntry child = (SVNDirEntry) ents.next(); SVNURL childURL = url.appendPath(child.getName(), false); String childPath = SVNPathUtil.append(path, child.getName()); String displayPath = repos.getFullPath(childPath); displayPath = displayPath.substring(repos.getLocation().getPath().length()); if (displayPath.startsWith("/")) { displayPath = displayPath.substring(1); } if ("".equals(displayPath)) { displayPath = path; } SVNLock lock = (SVNLock) locks.get(path); SVNInfo info = SVNInfo.createInfo(displayPath, root, uuid, childURL, rev, child, lock); if (depth.compareTo(SVNDepth.IMMEDIATES) >= 0 || (depth == SVNDepth.FILES && child.getKind() == SVNNodeKind.FILE)) { handler.handleInfo(info); } if (depth == SVNDepth.INFINITY && child.getKind() == SVNNodeKind.DIR) { pushDirInfo(repos, rev, SVNPathUtil.append(path, child.getName()), root, uuid, childURL, locks, depth, handler); } } }
private void pushDirInfo(SVNRepository repos, SVNRevision rev, String path, SVNURL root, String uuid, SVNURL url, Map locks, SVNDepth depth, ISVNInfoHandler handler) throws SVNException { Collection children = repos.getDir(path, rev.getNumber(), null, SVNDirEntry.DIRENT_KIND | SVNDirEntry.DIRENT_CREATED_REVISION | SVNDirEntry.DIRENT_TIME | SVNDirEntry.DIRENT_LAST_AUTHOR, new ArrayList()); for (Iterator ents = children.iterator(); ents.hasNext();) { checkCancelled(); SVNDirEntry child = (SVNDirEntry) ents.next(); SVNURL childURL = url.appendPath(child.getName(), false); String childPath = SVNPathUtil.append(path, child.getName()); String displayPath = repos.getFullPath(childPath); displayPath = displayPath.substring(repos.getLocation().getPath().length()); if (displayPath.startsWith("/")) { displayPath = displayPath.substring(1); } if ("".equals(displayPath)) { displayPath = path; } SVNLock lock = (SVNLock) locks.get(path); SVNInfo info = SVNInfo.createInfo(displayPath, root, uuid, url, rev, child, lock); if (depth.compareTo(SVNDepth.IMMEDIATES) >= 0 || (depth == SVNDepth.FILES && child.getKind() == SVNNodeKind.FILE)) { handler.handleInfo(info); } if (depth == SVNDepth.INFINITY && child.getKind() == SVNNodeKind.DIR) { pushDirInfo(repos, rev, SVNPathUtil.append(path, child.getName()), root, uuid, childURL, locks, depth, handler); } } }
private void pushDirInfo(SVNRepository repos, SVNRevision rev, String path, SVNURL root, String uuid, SVNURL url, Map locks, SVNDepth depth, ISVNInfoHandler handler) throws SVNException { Collection children = repos.getDir(path, rev.getNumber(), null, SVNDirEntry.DIRENT_KIND | SVNDirEntry.DIRENT_CREATED_REVISION | SVNDirEntry.DIRENT_TIME | SVNDirEntry.DIRENT_LAST_AUTHOR, new ArrayList()); for (Iterator ents = children.iterator(); ents.hasNext();) { checkCancelled(); SVNDirEntry child = (SVNDirEntry) ents.next(); SVNURL childURL = url.appendPath(child.getName(), false); String childPath = SVNPathUtil.append(path, child.getName()); String displayPath = repos.getFullPath(childPath); displayPath = displayPath.substring(repos.getLocation().getPath().length()); if (displayPath.startsWith("/")) { displayPath = displayPath.substring(1); } if ("".equals(displayPath)) { displayPath = path; } SVNLock lock = (SVNLock) locks.get(path); SVNInfo info = SVNInfo.createInfo(displayPath, root, uuid, url, rev, child, lock); if (depth.compareTo(SVNDepth.IMMEDIATES) >= 0 || (depth == SVNDepth.FILES && child.getKind() == SVNNodeKind.FILE)) { handler.handleInfo(info); } if (depth == SVNDepth.INFINITY && child.getKind() == SVNNodeKind.DIR) { pushDirInfo(repos, rev, SVNPathUtil.append(path, child.getName()), root, uuid, childURL, locks, depth, handler); } } }
handler.handleInfo(info);
handler.handleInfo(info); if (depth.compareTo(SVNDepth.EMPTY) > 0 && rootEntry.getKind() == SVNNodeKind.DIR) { SVNLock[] locks = null;
handler.handleInfo(info);