[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r966366 - in /subversion/trunk/subversion: include/svn_client.h libsvn_client/add.c libsvn_client/deprecated.c svn/mkdir-cmd.c

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Wed, 21 Jul 2010 22:03:49 +0100

hwright_at_apache.org writes:

> Author: hwright
> Date: Wed Jul 21 19:06:11 2010
> New Revision: 966366
>
> URL: http://svn.apache.org/viewvc?rev=966366&view=rev
> Log:
> Rev the client mkdir API to return commit info through the ctx callback.

> +svn_error_t *
> +svn_client_mkdir3(svn_commit_info_t **commit_info_p,
> + const apr_array_header_t *paths,
> + svn_boolean_t make_parents,
> + const apr_hash_t *revprop_table,
> + svn_client_ctx_t *ctx,
> + apr_pool_t *pool)
> +{
> + svn_client_ctx_t shadow_ctx;
> + struct capture_baton_t cb;
>
> + cb.info = commit_info_p;
> + cb.pool = pool;
> + cb.original_callback = ctx->commit_callback2;
> + cb.original_baton = ctx->commit_baton;
> +
> + shadow_ctx = *ctx;
> + shadow_ctx.commit_callback2 = capture_commit_info;
> + shadow_ctx.commit_baton = &cb;
> +
> + return svn_client_mkdir4(paths, make_parents, revprop_table, ctx, pool);
> +}

subversion/libsvn_client/deprecated.c:123:20: warning: variable ‘shadow_ctx’ set but not used

I assume shadow_ctx should be passed to svn_client_mkdir4.

-- 
Philip
Received on 2010-07-21 23:04:45 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.