[wp-testers] Version 2.0.4-alpha.

Rob Miller r at robm.me.uk
Fri Jul 7 17:27:31 GMT 2006


Craig wrote:
> Also, I'm wondering if there is a way to have WP report the SVN
> revision number that is being run? The admin panel footer shows the
> WP-version, but I thought it *might* be useful to somehow extract and
> display the revision number from SVN.
>
You'd be looking for the svn info command:

[robmiller at dinero:robm.me.uk]$ svn info
Path: .
URL: http://svn.automattic.com/wordpress/trunk
Repository UUID: 1a063a9b-81f0-0310-95a4-ce76da25c4cd
Revision: 4004
Node Kind: directory
Schedule: normal
Last Changed Author: ryan
Last Changed Rev: 4003
Last Changed Date: 2006-07-06 15:35:59 -0700 (Thu, 06 Jul 2006)

Run it from PHP, parse the output for Revision:* et voila, you have the 
current revision.

-- 
Rob Miller
http://robm.me.uk/ | http://kantian.co.uk/



More information about the wp-testers mailing list