powtac
powtac

Reputation: 41070

PHP export a specific SVN revision?

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

Answers (2)

powtac
powtac

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

Pekka
Pekka

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

Related Questions