Page MenuHomePhabricator
Diviner Phabricator Tech Docs PhabricatorRepositoryVersion

final class PhabricatorRepositoryVersion
Phabricator Technical Documentation (Repositories)

This class is not documented.

Methods

public static function getMercurialVersion()

This method is not documented.
Return
wild

public static function isMercurialFilesCommandAvailable($mercurial_version)

The locate command is deprecated as of Mercurial 3.2, to be replaced with files command, which supports most of the same arguments. This determines whether the new files command should be used instead of the locate command.

Parameters
string$mercurial_version- The current version of mercurial which can be retrieved by calling: PhabricatorRepositoryVersion::getMercurialVersion()
Return
booleanTrue if the version of Mercurial is new enough to support the `files` command, or false if otherwise.