HomePhabricator

maintenance: Print version of MediaWiki on the command prompt

Description

maintenance: Print version of MediaWiki on the command prompt

In the past, $wgVersion was the global container used to keep
track of the version of MediaWiki. It was recently moved to a
constant (MW_VERSION).

Sometimes, it's difficult to know the current version of a MW
install unless checked via Special:Version (on the web interface).
This script is to make a quick command line based version checker
of MediaWiki so when someone is working on a patch and wants to
quickly know which version of MW that master is on (as this is
changing from time to time and no quick way to know if by developers).

It's a very simple script and to run it on your command line, do:

php maintenance/version.php

and you'll get a response with the MW version number and other info.
Also, it attempts to check that if the version is an LTS and appends
it to the version number and also build date which is the latest commit
tracked by git.

Change-Id: I547f3e7328cf3f18b9d414619b757efc81e63081

Details

Provenance
xSavitarAuthored on Jul 16 2020, 1:00 PM
Parents
rMWc98157d4d0dd: Merge "Migrate imagelinks table to abstract schema"
Branches
Unknown
Tags
Unknown
ChangeId
I547f3e7328cf3f18b9d414619b757efc81e63081