From: epriestley Date: Fri, 4 Nov 2011 20:33:08 +0000 (-0700) Subject: Disable color extensions in Mercurial X-Git-Tag: conduit-4~246 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=42b69af59b75b97704ca11ce4c325be68b538262;p=arcanist.git 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 --- 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);