if (result.getErrorMessage() != null && result.getErrorMessage().getErrorCode() == SVNErrorCode.REPOS_POST_COMMIT_HOOK_FAILED) { out.println(); out.println(result.getErrorMessage()); }
    public void run(final PrintStream out, PrintStream err) throws SVNException {        checkEditorCommand();        final boolean recursive = !getCommandLine().hasArgument(SVNArgument.NON_RECURSIVE);        boolean keepLocks = getCommandLine().hasArgument(SVNArgument.NO_UNLOCK);        final String message = getCommitMessage();        File[] localPaths = new File[getCommandLine().getPathCount()];        for (int i = 0; i < getCommandLine().getPathCount(); i++) {            matchTabsInPath(getCommandLine().getPathAt(i), err);            localPaths[i] = new File(getCommandLine().getPathAt(i));        }        getClientManager().setEventHandler(new SVNCommandEventProcessor(out, err, false));        SVNCommitClient client = getClientManager().getCommitClient();        SVNCommitInfo result = client.doCommit(localPaths, keepLocks, message, false, recursive);        if (result != SVNCommitInfo.NULL) {            out.println();            out.println("Committed revision " + result.getNewRevision() + ".");        }    }