If you put $Revision$ in a file and enable keyword expansion for it, you can get the SVN revision even when the system running the blog didn't use svn to checkout the code (and doesn't need svn installed).
You can assing $Revision$ to a PHP variable and use preg* etc. to extract the piece you want. Best regards, + Kimmo -- <A HREF="http://kimmo.suominen.com/">Kimmo Suominen</A> On Fri, Jul 07, 2006 at 06:27:31PM +0100, Rob Miller wrote: > 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: > > [EMAIL PROTECTED]: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. _______________________________________________ wp-testers mailing list [email protected] http://lists.automattic.com/mailman/listinfo/wp-testers
