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:
parent
5150252f91
commit
42b69af59b
1 changed files with 1 additions and 0 deletions
|
@ -226,6 +226,7 @@ class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
|
|||
private function getDiffOptions() {
|
||||
$options = array(
|
||||
'--git',
|
||||
'--color never',
|
||||
'-U'.$this->getDiffLinesOfContext(),
|
||||
);
|
||||
return implode(' ', $options);
|
||||
|
|
Loading…
Reference in a new issue