Differential D21398 Diff 50938 src/applications/diffusion/protocol/DiffusionMercurialCommandEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/diffusion/protocol/DiffusionMercurialCommandEngine.php
Show First 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | final class DiffusionMercurialCommandEngine | ||||
*/ | */ | ||||
public static function filterMercurialDebugOutput($stdout) { | public static function filterMercurialDebugOutput($stdout) { | ||||
// When hg commands are run with `--debug` and some config file isn't | // When hg commands are run with `--debug` and some config file isn't | ||||
// trusted, Mercurial prints out a warning to stdout, twice, after Feb 2011. | // trusted, Mercurial prints out a warning to stdout, twice, after Feb 2011. | ||||
// | // | ||||
// http://selenic.com/pipermail/mercurial-devel/2011-February/028541.html | // http://selenic.com/pipermail/mercurial-devel/2011-February/028541.html | ||||
// | // | ||||
// After Jan 2015, it may also fail to write to a revision branch cache. | // After Jan 2015, it may also fail to write to a revision branch cache. | ||||
// | |||||
// Separately, it may fail to write to a different branch cache, and may | |||||
// encounter issues reading the branch cache. | |||||
$ignore = array( | $ignore = array( | ||||
'ignoring untrusted configuration option', | 'ignoring untrusted configuration option', | ||||
"couldn't write revision branch cache:", | "couldn't write revision branch cache:", | ||||
"couldn't write branch cache:", | |||||
'invalid branchheads cache', | |||||
); | ); | ||||
foreach ($ignore as $key => $pattern) { | foreach ($ignore as $key => $pattern) { | ||||
$ignore[$key] = preg_quote($pattern, '/'); | $ignore[$key] = preg_quote($pattern, '/'); | ||||
} | } | ||||
$ignore = '('.implode('|', $ignore).')'; | $ignore = '('.implode('|', $ignore).')'; | ||||
Show All 11 Lines |