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:
1) Look up the actual useful revision from the working directory when
we're running from a checkout
2) 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