1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-22 06:42:41 +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:
vrana 2013-03-06 16:32:38 -08:00
parent dd3d33c610
commit 91154c9cdf

View file

@ -127,6 +127,12 @@ final class ArcanistMercurialParser {
// format is otherwise identical to "hg log".
continue;
}
if (preg_match('/^remote:/', $line)) {
// This indicates remote error in "hg outgoing".
continue;
}
list($name, $value) = explode(':', $line, 2);
$value = trim($value);
switch ($name) {