You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Philip Martin <ph...@wandisco.com> on 2010/07/21 21:03:49 UTC

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

hwright@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

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

Posted by "Hyrum K. Wright" <hy...@mail.utexas.edu>.
On Wed, Jul 21, 2010 at 9:03 PM, Philip Martin
<ph...@wandisco.com> wrote:
> hwright@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.

Correct.  Fixed in r966429.

-Hyrum