]> khamidou — GitHub mirrors - arcanist.git/commit
Disable "color" extension in Mercurial in an extension-agnostic way
authorepriestley <git@epriestley.com>
Wed, 9 Nov 2011 02:21:19 +0000 (18:21 -0800)
committerepriestley <git@epriestley.com>
Wed, 9 Nov 2011 02:32:40 +0000 (18:32 -0800)
commit8a7e0b77836f5a3220319c9038453d6a226e6337
tree0d0b450ce9369bf11c5e8e6a6aeaeb3a9df87741
parenta5bd88e5cb48c5be9048e41118d0f5b7d6e5c462
Disable "color" extension in Mercurial in an extension-agnostic way

Summary:
In D1079, I added "--color never", but this flag is provided by the "color"
extension, which is why I missed it originally, because it doesn't show up until
you enable that extension. Providing it causes installs which don't have it
enabled (disabled is the default) to fail.

Use "--config" to disable color instead. This sets a configuration setting and
works regardless of whether the color extension is present.

Test Plan: Ran "arc diff" in a mercurial working copy with the color extension
enabled and disabled.

Reviewers: Makinde, jungejason, nh, tuomaspelkonen, aran

Reviewed By: nh

CC: aran, nh
Differential Revision: 1092
src/repository/api/mercurial/ArcanistMercurialAPI.php