Page MenuHomePhabricator

Sane output for http://www.mediawiki.org/w/api.php?version needed with git
Closed, ResolvedPublic

Description

Here is what we get right now:

http://www.mediawiki.org/w/api.php?version

MediaWiki: 1.20wmf1 (c532e81)
  https://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/
ApiMain: $Id$
ApiBase: $Id$
ApiFormatBase: $Id$
ApiQueryBase: $Id$

Version: 1.20.x
Severity: minor
URL: http://www.mediawiki.org/w/api.php?version

Details

Reference
bz35885

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 12:12 AM
bzimport set Reference to bz35885.

Git doesn't support keywords like this. To see when a file was last modified one will have to check the git repository.

In a similar fashion, http://www.mediawiki.org/w/api.php?action=paraminfo&modules=query also returns $Id$ in its version tags. If this feature is deprecated due to the conversion to Git, the output should be cleaned up or report a clear-cut error, if possible.

I believe we should kill all getVersion() stuff in API with fire. A feature should either work flawlessly or not be there at all. Since there appears to be no convenient way to doit in Git and since nobody uses these versions anyway, this stuff must die.

Change-Id: I910ca1448ed2ed697ac19b17c486d130aa1d7e03