You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Greg Stein <gs...@gmail.com> on 2010/04/27 10:22:31 UTC

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

On Tue, Apr 27, 2010 at 06:17,  <ph...@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

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

Posted by Philip Martin <ph...@wandisco.com>.
Greg Stein <gs...@gmail.com> writes:

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

r938404. Thanks!

-- 
Philip