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

Re: How to create a branch/tag using the SVN API?

From: Jochen Hebbrecht <jochen_at_pipa.be>
Date: Wed, 28 Jul 2010 11:55:38 +0200

On 07/28/2010 11:08 AM, Bert Huijben wrote:
>
> I would use the svn_client_copyX() command to just copy the urls you need.
> Seems like a much easier way to handle it, then to reproduce all the
> behavior myself.
>
> The error you see is that you can only copy from explicit (historic)
> locations, so I think you should copy from a revision root instead of from
> the transaction root. (The target must be the transaction of course)
>
> Bert
>

Bert,

Thanks for your answer. Unfortunately, the SVN API
(http://php.net/manual/en/book.svn.php) doesn't have a
svn_client_copyX() command :-( ...
When I try to copy from a revision root, I'm getting this error:

>> PHP Warning: svn_fs_copy(): supplied resource is not a valid
svn-fs-root resource in /var/www/pipa/testsvn.php on line 10

Jochen
Received on 2010-07-28 11:56:16 CEST

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