Merge branch '2.3'
commit
03e4d19266
|
@ -43,7 +43,7 @@ class ConsoleIO extends BaseIO
|
||||||
|
|
||||||
/** @var float */
|
/** @var float */
|
||||||
private $startTime;
|
private $startTime;
|
||||||
/** @var array<int, int> */
|
/** @var array<IOInterface::*, OutputInterface::VERBOSITY_*> */
|
||||||
private $verbosityMap;
|
private $verbosityMap;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -166,11 +166,7 @@ class ConsoleIO extends BaseIO
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($raw) {
|
if ($raw) {
|
||||||
if ($sfVerbosity === OutputInterface::OUTPUT_NORMAL) {
|
$sfVerbosity |= OutputInterface::OUTPUT_RAW;
|
||||||
$sfVerbosity = OutputInterface::OUTPUT_RAW;
|
|
||||||
} else {
|
|
||||||
$sfVerbosity |= OutputInterface::OUTPUT_RAW;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (null !== $this->startTime) {
|
if (null !== $this->startTime) {
|
||||||
|
|
|
@ -107,7 +107,7 @@ class Hg
|
||||||
{
|
{
|
||||||
if (false === self::$version) {
|
if (false === self::$version) {
|
||||||
self::$version = null;
|
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];
|
self::$version = $matches[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue