Index: subversion/svn/log-cmd.c =================================================================== --- subversion/svn/log-cmd.c (revision 1673891) +++ subversion/svn/log-cmd.c (working copy) @@ -47,6 +47,7 @@ /*** Code. ***/ +static apr_time_t LOG_BEGIN_TIME; /* Display a diff of the subtree TARGET_PATH_OR_URL@TARGET_PEG_REVISION as @@ -297,6 +298,7 @@ svn_cl__log_entry_receiver(void *baton, const char *author; const char *date; const char *message; + int time; if (lb->ctx->cancel_func) SVN_ERR(lb->ctx->cancel_func(lb->ctx->cancel_baton)); @@ -344,6 +346,12 @@ svn_cl__log_entry_receiver(void *baton, return SVN_NO_ERROR; } + time = apr_time_msec(apr_time_now() - LOG_BEGIN_TIME); + + SVN_ERR(svn_cmdline_printf(pool, "%d ms\n", time)); + + return svn_error_create(APR_EGENERAL, NULL, NULL); + SVN_ERR(svn_cmdline_printf(pool, SVN_CL__LOG_SEP_STRING "r%ld | %s | %s", log_entry->revision, author, date)); @@ -513,6 +521,7 @@ svn_cl__log_entry_receiver_xml(void *baton, const char *author; const char *date; const char *message; + int time; if (lb->ctx->cancel_func) SVN_ERR(lb->ctx->cancel_func(lb->ctx->cancel_baton)); @@ -672,7 +681,11 @@ svn_cl__log_entry_receiver_xml(void *baton, else svn_xml_make_close_tag(&sb, pool, "logentry"); - return svn_cl__error_checked_fputs(sb->data, stdout); + time = apr_time_msec(apr_time_now() - LOG_BEGIN_TIME); + + SVN_ERR(svn_cmdline_printf(pool, "%d ms\n", time)); + + return svn_error_create(APR_EGENERAL, NULL, NULL); } @@ -839,6 +852,9 @@ svn_cl__log(apr_getopt_t *os, if (!opt_state->quiet) APR_ARRAY_PUSH(revprops, const char *) = SVN_PROP_REVISION_LOG; } + + LOG_BEGIN_TIME = apr_time_now(); + SVN_ERR(svn_client_log5(targets, &lb.target_peg_revision, opt_state->revision_ranges, @@ -862,6 +878,9 @@ svn_cl__log(apr_getopt_t *os, APR_ARRAY_PUSH(revprops, const char *) = SVN_PROP_REVISION_DATE; if (!opt_state->quiet) APR_ARRAY_PUSH(revprops, const char *) = SVN_PROP_REVISION_LOG; + + LOG_BEGIN_TIME = apr_time_now(); + SVN_ERR(svn_client_log5(targets, &lb.target_peg_revision, opt_state->revision_ranges,