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

Re: svn commit: r1332432 - /subversion/branches/ev2-export/subversion/libsvn_client/copy.c

From: Hyrum K Wright <hyrum.wright_at_wandisco.com>
Date: Mon, 30 Apr 2012 20:26:55 -0500

On Mon, Apr 30, 2012 at 5:20 PM, Greg Stein <gstein_at_gmail.com> wrote:
> On Mon, Apr 30, 2012 at 17:58,  <hwright_at_apache.org> wrote:
>>...
>> @@ -902,9 +956,13 @@ repos_to_repos_copy(const apr_array_head
>>                                            message, ctx, pool));
>>
>>   /* Fetch RA commit editor. */
>> -  SVN_ERR(svn_ra__register_editor_shim_callbacks(ra_session,
>> -                        svn_client__get_shim_callbacks(ctx->wc_ctx,
>> -                                                       NULL, pool)));
>> +  shim_callbacks = svn_delta_shim_callbacks_default(pool);
>> +  SVN_ERR(svn_ra__register_editor_shim_callbacks(ra_session, shim_callbacks));
>> +  shim_callbacks->fetch_props_func = fetch_props_func;
>> +  shim_callbacks->fetch_base_func = fetch_base_func;
>> +  shim_callbacks->fetch_kind_func = fetch_kind_func;
>> +  shim_callbacks->fetch_baton = path_infos;
>
> Shouldn't the registration occur *after* the values are assigned? I
> recognize that this "works", but it certainly looks strange, and it
> would definitely break if the structure is copied into RA-private
> storage.

We can debate the semantics of call-by-value and call-by-reference in
this instance, but I think your suggestion makes sense: r1332489

-Hyrum

-- 
uberSVN: Apache Subversion Made Easy
http://www.uberSVN.com/
Received on 2012-05-01 03:27:30 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.