Add support for +meta in hg version number, fixes #10955
parent
8d5bdaf443
commit
623f903d62
|
@ -107,7 +107,7 @@ class Hg
|
|||
{
|
||||
if (false === self::$version) {
|
||||
self::$version = null;
|
||||
if (0 === $process->execute('hg --version', $output) && Preg::isMatch('/^.+? (\d+(?:\.\d+)+)\)?\r?\n/', $output, $matches)) {
|
||||
if (0 === $process->execute('hg --version', $output) && Preg::isMatch('/^.+? (\d+(?:\.\d+)+)(?:\+.*?)?\)?\r?\n/', $output, $matches)) {
|
||||
self::$version = $matches[1];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue