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

Re: svn commit: r34043 - trunk/subversion/libsvn_wc

From: Greg Stein <gstein_at_gmail.com>
Date: Tue, 4 Nov 2008 19:52:36 -0800

On Tue, Nov 4, 2008 at 8:10 AM, <julianfoad_at_tigris.org> wrote:
>...
> +++ trunk/subversion/libsvn_wc/tree_conflicts.c Tue Nov 4 08:10:00 2008 (r34043)
> @@ -469,6 +469,24 @@ svn_wc__tree_conflict_exists(apr_array_h
> }
>
> svn_error_t *
> +svn_wc__del_tree_conflict_data(const char *victim_path,
> + svn_wc_adm_access_t *adm_access,
> + apr_pool_t *pool)
> +{
> + svn_stringbuf_t *log_accum = svn_stringbuf_create("", pool);
> +
> + SVN_ERR(svn_wc__loggy_del_tree_conflict_data(log_accum,
> + victim_path,
> + adm_access,
> + pool));

The function signature doesn't follow the regular pattern for loggy
functions. The first param is a svn_string_t **, and it will create
the stringbuf if it doesn't already exist (eg is NULL).

>...
> +static void
> +array_remove_unordered(apr_array_header_t *array, int remove_index)
> +{
> + void *last_element = apr_array_pop(array);
> +
> + if (remove_index < array->nelts)

This test will always be true.

>...
> +++ trunk/subversion/libsvn_wc/tree_conflicts.h Tue Nov 4 08:10:00 2008 (r34043)
> @@ -153,6 +153,26 @@ svn_wc__loggy_add_tree_conflict_data(
> svn_wc_adm_access_t *adm_access,
> apr_pool_t *pool);
>
> +/* Like svn_wc__del_tree_conflict_data(), but append to the log accumulator
> + * LOG_ACCUM a command to rewrite the entry field, and do not flush the log.
> + * This function is meant to be used in the working copy library where
> + * log accumulators are usually readily available.
> + */
> +svn_error_t *
> +svn_wc__loggy_del_tree_conflict_data(svn_stringbuf_t *log_accum,
> + const char *victim_path,
> + svn_wc_adm_access_t *adm_access,
> + apr_pool_t *pool);

Again: this signature doesn't match the others.

(that said... I prefer this form, but it isn't the time to change
this; it'll mostly change in 1.7 regardless)

Cheers,
-g

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-11-05 04:53:08 CET

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.