if (!getSVNLookEnvironment().isFullPaths()) { indentation = ""; for (int i = 0; i < adminPath.getTreeDepth(); i++) { indentation += " "; String path = adminPath.getPath(); if (getSVNLookEnvironment().isFullPaths()) { path = path.startsWith("/") && !"/".equals(path) ? path.substring(1) : path; if (adminPath.isDir() && !"/".equals(path) && !path.endsWith("/")) { path += "/"; } else { path = !"/".equals(path) ? SVNPathUtil.tail(path) : path; if (adminPath.isDir() && !"/".equals(path) && !path.endsWith("/")) { path += "/"; String message = MessageFormat.format(" <{0}>", new Object[] { adminPath.getNodeID() != null ? adminPath.getNodeID() : "unknown" }); getSVNLookEnvironment().getOut().print(message);
public void handlePath(SVNAdminPath path) throws SVNException { if (path != null) { SVNLookCommandEnvironment environment = getSVNLookEnvironment(); if (environment.isShowIDs()) { environment.getOut().println(path.getRevision() + " " + path.getPath() + " <" + path.getNodeID() + ">"); } else { environment.getOut().println(path.getRevision() + " " + path.getPath()); } } }
private void getTree(FSFS fsfs, FSRoot root, String path, SVNNodeKind kind, FSID id, boolean includeIDs, int depth, boolean recursive, ISVNTreeHandler handler) throws SVNException { checkCancelled(); if (handler != null) { handler.handlePath(new SVNAdminPath(path, includeIDs ? id.toString() : null, depth, kind == SVNNodeKind.DIR)); } if (kind != SVNNodeKind.DIR) { return; } if (recursive || depth == 0) { FSRevisionNode node = root.getRevisionNode(path); Map entries = node.getDirEntries(fsfs); for (Iterator names = entries.keySet().iterator(); names.hasNext();) { String name = (String) names.next(); FSEntry entry = (FSEntry) entries.get(name); getTree(fsfs, root, SVNPathUtil.getAbsolutePath(SVNPathUtil.append(path, entry.getName())), entry.getType(), includeIDs ? entry.getId() : null, includeIDs, depth + 1, recursive, handler); } } }
private void getTree(FSFS fsfs, FSRoot root, String path, SVNNodeKind kind, FSID id, boolean includeIDs, int depth, boolean recursive, ISVNTreeHandler handler) throws SVNException { checkCancelled(); if (handler != null) { handler.handlePath(new SVNAdminPath(path, includeIDs ? id.toString() : null, depth, kind == SVNNodeKind.DIR)); } if (kind != SVNNodeKind.DIR) { return; } if (recursive || depth == 0) { FSRevisionNode node = root.getRevisionNode(path); Map entries = node.getDirEntries(fsfs); for (Iterator names = entries.keySet().iterator(); names.hasNext();) { String name = (String) names.next(); FSEntry entry = (FSEntry) entries.get(name); getTree(fsfs, root, SVNPathUtil.getAbsolutePath(SVNPathUtil.append(path, entry.getName())), entry.getType(), includeIDs ? entry.getId() : null, includeIDs, depth + 1, recursive, handler); } } }
if (!getSVNLookEnvironment().isFullPaths()) { indentation = ""; for (int i = 0; i < adminPath.getTreeDepth(); i++) { indentation += " "; String path = adminPath.getPath(); if (getSVNLookEnvironment().isFullPaths()) { path = path.startsWith("/") && !"/".equals(path) ? path.substring(1) : path; if (adminPath.isDir() && !"/".equals(path) && !path.endsWith("/")) { path += "/"; } else { path = !"/".equals(path) ? SVNPathUtil.tail(path) : path; if (adminPath.isDir() && !"/".equals(path) && !path.endsWith("/")) { path += "/"; String message = MessageFormat.format(" <{0}>", new Object[] { adminPath.getNodeID() != null ? adminPath.getNodeID() : "unknown" }); getSVNLookEnvironment().getOut().print(message);
public void handlePath(SVNAdminPath path) throws SVNException { if (path != null) { SVNLookCommandEnvironment environment = getSVNLookEnvironment(); if (environment.isShowIDs()) { environment.getOut().println(path.getRevision() + " " + path.getPath() + " <" + path.getNodeID() + ">"); } else { environment.getOut().println(path.getRevision() + " " + path.getPath()); } } }
private void getTree(FSFS fsfs, FSRoot root, String path, SVNNodeKind kind, FSID id, boolean includeIDs, int depth, boolean recursive, ISVNTreeHandler handler) throws SVNException { checkCancelled(); if (handler != null) { handler.handlePath(new SVNAdminPath(path, includeIDs ? id.toString() : null, depth, kind == SVNNodeKind.DIR)); } if (kind != SVNNodeKind.DIR) { return; } if (recursive || depth == 0) { FSRevisionNode node = root.getRevisionNode(path); Map entries = node.getDirEntries(fsfs); for (Iterator names = entries.keySet().iterator(); names.hasNext();) { String name = (String) names.next(); FSEntry entry = (FSEntry) entries.get(name); getTree(fsfs, root, SVNPathUtil.getAbsolutePath(SVNPathUtil.append(path, entry.getName())), entry.getType(), includeIDs ? entry.getId() : null, includeIDs, depth + 1, recursive, handler); } } }
handler.handlePath(new SVNAdminPath(history.getHistoryEntry().getPath(), id, revision)); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.CEASE_INVOCATION) {
handler.handlePath(new SVNAdminPath(history.getHistoryEntry().getPath(), id, revision)); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.CEASE_INVOCATION) {
handler.handlePath(new SVNAdminPath(history.getHistoryEntry().getPath(), id, revision)); } catch (SVNException svne) { if (svne.getErrorMessage().getErrorCode() == SVNErrorCode.CEASE_INVOCATION) {