[PATCH 5 of 7] config: suggest the 'ui.color' instead of the 'color' extension
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Tue Feb 28 14:25:45 EST 2017
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david at 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.
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 at 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 =""",
}
More information about the Mercurial-devel
mailing list