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

Re: svn_client_copy4 - does it work with two src_paths?

From: Barry Scott <barry_at_barrys-emacs.org>
Date: 2007-11-05 22:53:28 CET

On Nov 4, 2007, at 19:19, David Glasser wrote:

> On 11/4/07, Barry Scott <barry@barrys-emacs.org> wrote:
>> I'm adding support for svn 1.5 to pysvn and have hit a problem
>> calling
>> svn_client_copy4. It likely that I'm calling copy4 incorrectly.
>>
>> I'm trying to copy two files within a WC to a new folder with
>> make_parents=True.
>>
>> I'm getting a returned error of 195014
>> (SVN_ERR_CLIENT_MULTIPLE_SOURCES_DISALLOWED).
>>
>> Why would copy4 tell me that multiple sources are disallowed?
>
> Because you didn't set copy_as_child to TRUE; see the docstring.

Yep that fixed it.

>
>> Why is error->message NULL and not pointing to a string?
>
> Because there is no custom message more specific than the default
> message for the error code; use svn_err_best_message instead of direct
> access.
>

For my API I return the list of codes and messages. I've updated
my code to use svn_strerror to get the message from the code.

Thanks for the help.

Barry

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Nov 5 22:53:45 2007

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