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 added a project: MediaWiki-API.
bzimport set Reference to bz35885.
saper created this task.Apr 11 2012, 12:42 PM

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.

Will delete it. Git kinda supports it but according to many its not worth the hassle.

http://stackoverflow.com/questions/62264/dealing-with-svn-keyword-expansion-with-git-svn#72874

Yurik added a comment.Jan 12 2013, 4:27 PM

Change-Id: I910ca1448ed2ed697ac19b17c486d130aa1d7e03

Change applied.