Patchwork [5,of,7] config: suggest the 'ui.color' instead of the 'color' extension

login
register
mail settings
Submitter Pierre-Yves David
Date Feb. 28, 2017, 7:25 p.m.
Message ID <63ff941fd53a11b8e295.1488309945@nodosa.octopoid.net>
Download mbox | patch
Permalink /patch/18843/
State Accepted
Headers show

Comments

Pierre-Yves David - Feb. 28, 2017, 7:25 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@ens-lyon.org>
# Date 1487711853 -3600
#      Tue Feb 21 22:17:33 2017 +0100
# Node ID 63ff941fd53a11b8e295db36f3787f60ef0c9ceb
# Parent  84cd9b720b92c6bab764bc172b8cf2795f8e8600
# EXP-Topic color
config: suggest the 'ui.color' instead of the 'color' extension

The extensions is deprecated now so we should offer the core way to handle color
instead.

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -55,12 +55,14 @@  samplehgrcs = {
 # username = Jane Doe <jdoe@example.com>
 username =
 
+# uncomment to colorize commands output
+# color = auto
+
 [extensions]
 # uncomment these lines to enable some popular extensions
 # (see 'hg help extensions' for more info)
 #
-# pager =
-# color =""",
+# pager =""",
 
     'cloned':
 """# example repository config (see 'hg help config' for more info)
@@ -98,12 +100,15 @@  default = %s
     'global':
 """# example system-wide hg config (see 'hg help config' for more info)
 
+[ui]
+# uncomment to colorize commands output
+# color = auto
+
 [extensions]
 # uncomment these lines to enable some popular extensions
 # (see 'hg help extensions' for more info)
 #
 # blackbox =
-# color =
 # pager =""",
 }