Add --setversion option to parserTests
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 15 May 2009 19:23:00 +0000 (19:23 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 15 May 2009 19:23:00 +0000 (19:23 +0000)
commitfd8ed0ba5c8c21f00157dadb99327326df4b8392
tree78ba37b0651aa97012cbaafecec47b9c18d65054
parent955e9ed2a9669bd02db98cc40f68e855bb4b239d
Add --setversion option to parserTests

This overrides the version string stored in the database with --record.
When using git-svn, you can do

    php maintenance/parserTests.php --quick --quiet --record \
--setversion=`git rev-parse HEAD`

to have comprehensible version info stored for the purposes of later
bisection.  Previously just "1.16alpha" would be stored, which is
useless for tracking down the old revision -- you'd have to try guessing
based on date.

It might be useful for SpecialVersion::getVersion() to support git-svn,
but that's a more complicated and intrusive change for an admittedly
small minority, so I avoided it for now.
maintenance/parserTests.inc
maintenance/parserTests.php