|
|
|
@ -20,6 +20,8 @@ use Composer\IO\IOInterface;
|
|
|
|
|
*/
|
|
|
|
|
class Hg
|
|
|
|
|
{
|
|
|
|
|
private static $version = false;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @var \Composer\IO\IOInterface
|
|
|
|
|
*/
|
|
|
|
@ -90,7 +92,7 @@ class Hg
|
|
|
|
|
{
|
|
|
|
|
if (false === self::$version) {
|
|
|
|
|
self::$version = null;
|
|
|
|
|
if (0 === $this->process->execute('hg --version', $output) && preg_match('/version (\d+(?:\.\d+)+)/m', $output, $matches)) {
|
|
|
|
|
if (0 === $process->execute('hg --version', $output) && preg_match('/version (\d+(?:\.\d+)+)/m', $output, $matches)) {
|
|
|
|
|
self::$version = $matches[1];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|