https://bugzilla.wikimedia.org/show_bug.cgi?id=36453
Web browser: ---
Bug #: 36453
Summary: Provide the git info on action=query&meta=siteinfo
Product: MediaWiki
Version: 1.20-git
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
On [[Special:Version]] it is shown the following:
+-----------+--------------------+
| Product | Version |
+-----------+--------------------+
| MediaWiki | 1.20wmf1 (3e1bae7) |
+-----------+--------------------+
| ...
Prior to git migration, there was an SVN revision number instead of the code
"3e1bae7", and it was possible to get it from API by using the "rev" property
in a query such as this:
https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&format=jsonfm
Now that MW is uses Git, there doesn't seems to be a way to get the "3e1bae7"
because the "rev" is not defined.
The relevant code seems to be at
https://gerrit.wikimedia.org/r/gitweb?p=mediawiki/core.git;a=blob;f=includes/api/ApiQuerySiteinfo.php;h=e11d1105262af5ec919568c1240067a9cfe94558;hb=HEAD#l123
Could someone add an analogous code which would result in things such as
"3e1bae7"?
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l