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

Re: [PATCH] allow svnsync to translate non-UTF-8 log messages to UTF-8 (v. 3)

From: Danny Trebbien <dtrebbien_at_gmail.com>
Date: Fri, 14 Jan 2011 09:16:06 -0800

>>> -      SVN_ERR(normalize_string(&value, &was_normalized, pool));
>>> +      SVN_ERR(normalize_string(&value, &was_normalized, eb->prop_encoding,
>>> +                               pool, pool));
>>>        if (was_normalized)
>>> -        (*(eb->normalized_node_props_counter))++;
>>> +        (*(eb->le_normalized_node_props_counter))++;
>>>      }
>> This kind of code can be simplified (removing one level of indirection)
>> by making the baton hold the actual counter instead of a pointer to it.
> Okay.

Actually, I take that back. The pointer to the count comes from the
"public API" function svnsync_get_sync_editor(). I don't think that
this indirection can be removed without adding another API function to
retrieve the count. Something like:

svnsync_get_edit_baton_normalization_count(void *edit_baton)
  return ((edit_baton_t*) edit_baton)->normalized_node_props_count;

Maybe this change can be done in another patch as the patch is getting
large again.
Received on 2011-01-14 18:16:48 CET

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