Author: breser
Date: Wed Nov 28 18:28:54 2012
New Revision: 1414851
URL: http://svn.apache.org/viewvc?rev=1414851&view=rev
Log:
Adjust svn-bench to use svn_client_list3 to shut up the deprecated func warning
This doesn't implement include externals on svn-bench since externals is a
client side feature and svn-bench exists to really benchmark the server/RA
layers.
Follow up to r1414304.
* tools/client-side/svn-bench/null-list-cmd.c
(print_dirent): Convert to svn_client_list_func2_t.
(svn_cl__nul_list): Switch to using svn_client_list3(), pass FALSE to
include_externals.
Modified:
subversion/trunk/tools/client-side/svn-bench/null-list-cmd.c
Modified: subversion/trunk/tools/client-side/svn-bench/null-list-cmd.c
URL:
http://svn.apache.org/viewvc/subversion/trunk/tools/client-side/svn-bench/null-list-cmd.c?rev=1414851&r1=1414850&r2=1414851&view=diff
==============================================================================
--- subversion/trunk/tools/client-side/svn-bench/null-list-cmd.c (original)
+++ subversion/trunk/tools/client-side/svn-bench/null-list-cmd.c Wed Nov 28
18:28:54 2012
@@ -48,7 +48,7 @@ struct print_baton {
svn_client_ctx_t *ctx;
};
-/* This implements the svn_client_list_func_t API, printing a single
+/* This implements the svn_client_list_func2_t API, printing a single
directory entry in text format. */
static svn_error_t *
print_dirent(void *baton,
@@ -56,6 +56,8 @@ print_dirent(void *baton,
const svn_dirent_t *dirent,
const svn_lock_t *lock,
const char *abs_path,
+ const char *external_parent_url,
+ const char *external_target,
apr_pool_t *pool)
{
struct print_baton *pb = baton;
@@ -123,11 +125,12 @@ svn_cl__null_list(apr_getopt_t *os,
SVN_ERR(svn_opt_parse_path(&peg_revision, &truepath, target,
subpool));
- err = svn_client_list2(truepath, &peg_revision,
+ err = svn_client_list3(truepath, &peg_revision,
&(opt_state->start_revision),
opt_state->depth,
dirent_fields,
opt_state->verbose,
+ FALSE, /* include externals */
print_dirent,
&pb, ctx, subpool);