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

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

From: Jochen Hebbrecht <jochen_at_pipa.be>
Date: Wed, 28 Jul 2010 10:13:51 +0200


I'm currently trying to create a branch/tag through the SVN API - PHP.

This is my code:

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_begin_txn2($svn_fs,
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] PHP Warning:
svn_fs_copy(): svn error(s) occured\n200007 (Trying to use an
unsupported feature) Copy from mutable tree not currently supported\n in
/var/www/pipa/testsvn.php on line 10

Any idea's what I'm doing wrong here?

Received on 2010-07-28 10:14:32 CEST

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