> -----Original Message-----
> From: Jochen Hebbrecht [mailto:jochen_at_pipa.be]
> Sent: woensdag 28 juli 2010 10:14
> To: dev_at_subversion.apache.org
> Subject: How to create a branch/tag using the SVN API?
> I'm currently trying to create a branch/tag through the SVN API - PHP.
> This is my code:
> // CLIENT INFO
> echo svn_client_version();
> // CREATING BRANCH/TAG $svn_repos = svn_repos_open("##PATH_TO_REPO##");
> $svn_fs = svn_repos_fs($svn_repos); $svn_tx =
> svn_fs_youngest_rev($svn_fs)); $svn_tx_root = svn_fs_txn_root($svn_tx);
> svn_fs_copy( $svn_tx_root, "/FOO", $svn_tx_root, "/BAR");
> But then I'm getting this error:
> [Tue Jul 27 14:50:30 2010] [error] [client 127.0.0.1] PHP Warning:
> svn_fs_copy(): svn error(s) occured\n200007 (Trying to use an
> unsupported feature) Copy from mutable tree not currently supported\n
> /var/www/pipa/testsvn.php on line 10
> Any idea's what I'm doing wrong here?
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
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)
Received on 2010-07-28 11:09:00 CEST