[PATCH] color: mark --no-color as deprecated (--color=never has the same effect)

Brodie Rao dackze at gmail.com
Tue Sep 22 08:30:52 CDT 2009


# HG changeset patch
# User Brodie Rao <me+hg at dackz.net>
# Date 1253626148 14400
# Node ID bf29ee49a8ff8543c4d0119922bf080907d6f3f6
# Parent  a15813fae0a8f414228f9da768c235f9d017ebfa
color: mark --no-color as deprecated (--color=never has the same effect)

This should've been marked deprecated when --color was first introduced,
but it was something I overlooked.

diff --git a/hgext/color.py b/hgext/color.py
--- a/hgext/color.py
+++ b/hgext/color.py
@@ -256,7 +256,7 @@ def _setupcmd(ui, cmd, table, func, effe
     entry = extensions.wrapcommand(table, cmd, nocolor)
     entry[1].extend([
         ('', 'color', 'auto', _("when to colorize (always, auto, or never)")),
-        ('', 'no-color', None, _("don't colorize output")),
+        ('', 'no-color', None, _("don't colorize output (DEPRECATED)")),
     ])
 
     for status in effectsmap:


More information about the Mercurial-devel mailing list