Testing head, any extensions that are from the git repo don't get version hashes, but the SVN ones do.
Oversight?
Version: 1.19
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=39994
Testing head, any extensions that are from the git repo don't get version hashes, but the SVN ones do.
Oversight?
Version: 1.19
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=39994
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | None | T37278 Enable Botadmin usergroup at ml.wiktionary | |||
| Resolved | None | T37649 Special:Version doesn't list hashes of extensions checked out from git |
I guess it is:
/**
*/
public static function getVersion( $flags = '' ) {
global $wgVersion, $IP;
wfProfileIn( __METHOD__ );
$info = self::getSvnInfo( $IP );
if ( !$info ) {
$version = $wgVersion;
} elseif( $flags === 'nodb' ) {
$version = "$wgVersion (r{$info['checkout-rev']})";
} else {
$version = $wgVersion . ' ' .
wfMsg(
'version-svn-revision',
isset( $info['directory-rev'] ) ? $info['directory-rev'] : '',
$info['checkout-rev']
);
}
wfProfileOut( __METHOD__ );
return $version;}
vs for core:
/**
*/
public static function getVersionLinked() {
global $wgVersion;
wfProfileIn( __METHOD__ );
if( $gitVersion = self::getVersionLinkedGit() ) {
$v = $gitVersion;
} elseif( $svnVersion = self::getVersionLinkedSvn() ) {
$v = $svnVersion;
} else {
$v = $wgVersion; // fallback
}
wfProfileOut( __METHOD__ );
return $v;}