You mean, just run svnversion for each extensions' folder? this might be a good idea - it'll also indicate if we're running from checkout. Might also be a good idea to get the branch URL (e.g. trunk vs MW REL_X vs. extensions' REL_X or just branch path after http://svn.wikimedia.org/svnroot/mediawiki/) just for ease of debugging and stuff.
Sergey
-- Sergey Chernyshev http://www.sergeychernyshev.com/
On Wed, Apr 22, 2009 at 4:38 PM, Brion Vibber brion@wikimedia.org wrote:
On 4/22/09 11:01 AM, Sergey Chernyshev wrote:
I probably have an idea of how to implement this using a bot (or
post-commit
hook if we want real-time data) and externals.
Essentially bot script should be checking the version of extension folder and generate and check-in an entry in another repository in the form like this:
http://extensionversioningrepo/trunk/OpenID/version.php
and write a Last Changed Rev from svn info
http://svn.wikimedia.org/svnroot/mediawiki/trunk/extensions/OpenID/something
like this:
<? $wgExtensionRevisions['OpenID'] = 49664;
Hmmmm, could be maintained in tree this way, but IMHO not worth the trouble -- it's more likely to trigger merge conflicts and other annoyances.
Probably better would be:
- Look up the actual useful revision from the working directory when
we're running from a checkout
- Also include that info into releases & ExtensionDistributor output so
people who aren't working from checkouts will still get the useful versions, and look that file up if the SVN info isn't there.
-- brion
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l