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

Re: svn commit: r938396 - /subversion/trunk/subversion/libsvn_client/copy.c

From: Greg Stein <gstein_at_gmail.com>
Date: Tue, 27 Apr 2010 06:22:31 -0400

On Tue, Apr 27, 2010 at 06:17, <philip_at_apache.org> wrote:
> +++ subversion/trunk/subversion/libsvn_client/copy.c Tue Apr 27 10:17:57 2010
>...
> @@ -1166,13 +1165,17 @@ wc_to_repos_copy(svn_commit_info_t **com
>
>   for (i = 0; i < copy_pairs->nelts; i++)
>     {
> +      svn_node_kind_t kind;
>       svn_client__copy_pair_t *pair = APR_ARRAY_IDX(copy_pairs, i,
>                                                     svn_client__copy_pair_t *);
>       svn_pool_clear(iterpool);
>       /* Sanity check if the source path is versioned. */
> -      SVN_ERR(svn_wc__get_entry_versioned(&entry, ctx->wc_ctx, pair->src,
> -                                          svn_node_unknown, FALSE, FALSE,
> -                                          iterpool, iterpool));
> +      SVN_ERR(svn_wc__node_get_kind(&kind, ctx->wc_ctx, pair->src, FALSE,
> +                                    iterpool));
> +      if (kind == svn_node_unknown)
> +        return svn_error_createf(SVN_ERR_NODE_UNKNOWN_KIND, NULL,
> +                                 _("Path '%s' does not exist"),
> +                                 svn_dirent_local_style(pair->src, pool));

Euh... nope. "does not exist" is svn_node_none.

>...

Cheers,
-g
Received on 2010-04-27 12:23:07 CEST

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