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

Re: svn commit: r1353738 - /subversion/trunk/subversion/libsvn_client/switch.c

From: Greg Stein <gstein_at_gmail.com>
Date: Mon, 25 Jun 2012 19:54:39 -0400

On Mon, Jun 25, 2012 at 4:50 PM, <stsp_at_apache.org> wrote:
>...
> +++ subversion/trunk/subversion/libsvn_client/switch.c Mon Jun 25 20:50:17 2012
> @@ -94,8 +94,6 @@ switch_internal(svn_revnum_t *result_rev
>                                   : NULL;
>   /* Resolve conflicts post-switch for 1.7 and above API users. */
>   svn_boolean_t resolve_conflicts_post_switch = (ctx->conflict_func2 != NULL);

Note the above line...

>...
> @@ -252,7 +239,10 @@ switch_internal(svn_revnum_t *result_rev
>                                     server_supports_depth,
>                                     diff3_cmd, preserved_exts,
>                                     svn_client__dirent_fetcher, &dfb,
> -                                    ctx->conflict_func2, ctx->conflict_baton2,
> +                                    resolve_conflicts_post_switch ?
> +                                      NULL : ctx->conflict_func2,
> +                                    resolve_conflicts_post_switch ?
> +                                      NULL : ctx->conflict_baton2,

You may as well just pass NULL unconditionally. If
resolve_conflicts_post_switch is FALSE, the the func is NULL.

>...

Cheers,
-g
Received on 2012-06-26 01:55:11 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.