1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +01:00

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
This commit is contained in:
epriestley 2011-11-04 13:33:08 -07:00
parent 5150252f91
commit 42b69af59b

View file

@ -226,6 +226,7 @@ class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
private function getDiffOptions() { private function getDiffOptions() {
$options = array( $options = array(
'--git', '--git',
'--color never',
'-U'.$this->getDiffLinesOfContext(), '-U'.$this->getDiffLinesOfContext(),
); );
return implode(' ', $options); return implode(' ', $options);