Reputation: 41070
Is there a way of exporting a specific revision from SVN via PHP? The svn_function()
does currently not offer such a parameter.
Upvotes: 0
Views: 203
Reputation: 41070
I got an answer from the PHP mailing list:
As of version 1.0.0 of the SVN PECL extension, you can provide a 4th parameter (undocumented) to svn_export() to specify a revision number.
Changelog of 1.0.0: http://pecl.php.net/package-info.php?package=svn&version=1.0.0
Upvotes: 0
Reputation: 449605
Doesn't look like it.
I assume you have to svn_checkout()
first (that one accepts a revision number) and then export from there.
Upvotes: 1