final StringBuffer buffer = new StringBuffer(); myPrintStream = new PrintStream(System.out, true) { public void print(String s) { super.print(s); buffer.append(s); } };
String limitStr = (String) getCommandLine().getArgumentValue(SVNArgument.LIMIT); myPrintStream = out; long limit = 0; if (limitStr != null) { try { limit = Long.parseLong(limitStr); } catch (NumberFormatException nfe) {} }
    public void run(PrintStream out, PrintStream err) throws SVNException {        String revStr = (String) getCommandLine().getArgumentValue(SVNArgument.REVISION);        SVNRevision startRevision = SVNRevision.UNDEFINED;        SVNRevision endRevision = SVNRevision.UNDEFINED;        if (revStr != null && revStr.indexOf(':') > 0) {            startRevision = SVNRevision.parse(revStr.substring(0, revStr.indexOf(':')));            endRevision = SVNRevision.parse(revStr.substring(revStr.indexOf(':') + 1));        } else if (revStr != null) {            startRevision = SVNRevision.parse(revStr);        }        if (startRevision.isValid() && !endRevision.isValid()) {            endRevision = startRevision;        } else if (!startRevision.isValid()) {            if (getCommandLine().hasURLs()) {                startRevision = SVNRevision.HEAD;            } else {                startRevision  = SVNRevision.BASE;            }            if (!endRevision.isValid()) {                endRevision = SVNRevision.create(0);            }        }        boolean stopOnCopy = getCommandLine().hasArgument(SVNArgument.STOP_ON_COPY);        myReportPaths = getCommandLine().hasArgument(SVNArgument.VERBOSE);        myIsQuiet = getCommandLine().hasArgument(SVNArgument.QUIET);        final StringBuffer buffer = new StringBuffer();        myPrintStream = new PrintStream(System.out, true) {            public void print(String s) {                super.print(s);                buffer.append(s);            }        };        SVNLogClient logClient = getClientManager().getLogClient();        if (getCommandLine().hasURLs()) {            String url = getCommandLine().getURL(0);            Collection targets = new ArrayList();            for(int i = 0; i < getCommandLine().getPathCount(); i++) {                targets.add(getCommandLine().getPathAt(i));            }            String[] paths = (String[]) targets.toArray(new String[targets.size()]);            logClient.doLog(SVNURL.parseURIEncoded(url), paths, SVNRevision.UNDEFINED, startRevision ,endRevision, stopOnCopy, myReportPaths, 0, this);        } else if (getCommandLine().hasPaths()) {            Collection targets = new ArrayList();            for(int i = 0; i < getCommandLine().getPathCount(); i++) {                targets.add(new File(getCommandLine().getPathAt(i)).getAbsoluteFile());            }            File[] paths = (File[]) targets.toArray(new File[targets.size()]);            logClient.doLog(paths, startRevision ,endRevision, stopOnCopy, myReportPaths, 0, this);        }        if (myHasLogEntries) {            myPrintStream.print(SEPARATOR);        }    }