API: Expose git branch in siteinfo
authorAntoine Musso <hashar@free.fr>
Tue, 6 May 2014 19:28:22 +0000 (21:28 +0200)
committerBryanDavis <bdavis@wikimedia.org>
Wed, 7 May 2014 00:25:51 +0000 (00:25 +0000)
commit5e3a3412ba128473114202732e4a9537d1b93ee4
treefd85992ab3a77a15c27169bb13ab20157922f9e9
parent1d15388d2138ceba6761b6a02c69c4f55980cb01
API: Expose git branch in siteinfo

For browser testing, I need a reliable way to determine the branch in use
on a target wiki.  One could parse the generator name forged when
querying the siteinfo, but that yields:

 MediaWiki 1.24alpha  instead of master
 MediaWiki 1.24wmf2   instead of wmf/1.24wmf2

I am not really willing to reverse engineer the version to figure out
the branch, instead just expose it over the API.

Bug: 62509
Change-Id: If3db8f480ce0d590522741d40fb8e43b753efb41
includes/api/ApiQuerySiteinfo.php
includes/specials/SpecialVersion.php