[wp-hackers] SVN symlink for stable version
Jeremy Visser
jeremy.visser at gmail.com
Sun Jan 20 13:24:17 GMT 2008
On Sun, 2008-01-20 at 14:00 +0100, Joost de Valk wrote:
> Might be a stupid question, but is there a way to download the latest
> stable version without "knowing" what the latest stable version is?
> I'd like to be able to do
>
> svn co http://svn.automattic.com/wordpress/tags/current
>
> or something to that effect...
It would be pretty hard to do in SVN. You have to do it by creating a
"stable" branch, and be forever merging changes into it.
Now, my idea was to create a redirect to the latest stable tag, but
unfortunately SVN bombs out when it encounters a redirect ("Error 301"
or "Error 302" or the like) instead of following it.
This has been discussed before, and the general consensus was that it
was impossible/impractical.
If you're doing this via a script, you may be able to query
api.wordpress.org for the latest version somehow, and then download the
right tag from what a.w.o returns.
More information about the wp-hackers
mailing list