From 91154c9cdf31dbe0ed5c9d8ecff8481445664cdc Mon Sep 17 00:00:00 2001 From: vrana Date: Wed, 6 Mar 2013 16:32:38 -0800 Subject: [PATCH] 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 --- src/repository/parser/ArcanistMercurialParser.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/repository/parser/ArcanistMercurialParser.php b/src/repository/parser/ArcanistMercurialParser.php index 814a95b7..884e37bb 100644 --- a/src/repository/parser/ArcanistMercurialParser.php +++ b/src/repository/parser/ArcanistMercurialParser.php @@ -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) { -- 2.43.0