mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 08:42:40 +01:00
Ignore remote errors in parsing Mercurial log
Summary: This probably indicates some none fatal error, e.g.: > remote: Certificate invalid: name is not a listed principal The best thing here would be to avoid the error but we shouldn't explode even if it is there. I tried to mute the error from the output but didn't find a switch or config option to do it. Test Plan: $ hg outgoing --branch default --style default Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5267
This commit is contained in:
parent
dd3d33c610
commit
91154c9cdf
1 changed files with 6 additions and 0 deletions
|
@ -127,6 +127,12 @@ final class ArcanistMercurialParser {
|
||||||
// format is otherwise identical to "hg log".
|
// format is otherwise identical to "hg log".
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (preg_match('/^remote:/', $line)) {
|
||||||
|
// This indicates remote error in "hg outgoing".
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
list($name, $value) = explode(':', $line, 2);
|
list($name, $value) = explode(':', $line, 2);
|
||||||
$value = trim($value);
|
$value = trim($value);
|
||||||
switch ($name) {
|
switch ($name) {
|
||||||
|
|
Loading…
Reference in a new issue