From 42b69af59b75b97704ca11ce4c325be68b538262 Mon Sep 17 00:00:00 2001 From: epriestley Date: Fri, 4 Nov 2011 13:33:08 -0700 Subject: [PATCH] Disable color extensions in Mercurial Summary: Mercurial has a --color flag which disables the use of ANSI colors. Use it to prevent "hg diff" from giving us colorized diff output. Test Plan: Ran "hg diff --color never", verified it disabled ANSI color in diff output. Reviewers: Makinde, jungejason, nh, tuomaspelkonen, aran Reviewed By: aran CC: aran Differential Revision: 1079 --- src/repository/api/mercurial/ArcanistMercurialAPI.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/repository/api/mercurial/ArcanistMercurialAPI.php b/src/repository/api/mercurial/ArcanistMercurialAPI.php index fe771736..23133ca5 100644 --- a/src/repository/api/mercurial/ArcanistMercurialAPI.php +++ b/src/repository/api/mercurial/ArcanistMercurialAPI.php @@ -226,6 +226,7 @@ class ArcanistMercurialAPI extends ArcanistRepositoryAPI { private function getDiffOptions() { $options = array( '--git', + '--color never', '-U'.$this->getDiffLinesOfContext(), ); return implode(' ', $options);