2014-10-06 16:16:40 +04:00
|
|
|
# color.py color output for Mercurial commands
|
2007-12-31 18:15:39 +03:00
|
|
|
#
|
|
|
|
# Copyright (C) 2007 Kevin Christen <kevin.christen@gmail.com>
|
|
|
|
#
|
2012-01-03 05:30:21 +04:00
|
|
|
# This software may be used and distributed according to the terms of the
|
|
|
|
# GNU General Public License version 2 or any later version.
|
2007-12-31 18:15:39 +03:00
|
|
|
|
2017-02-21 22:04:55 +03:00
|
|
|
'''enable Mercurial color mode (DEPRECATED)
|
2007-12-31 18:15:39 +03:00
|
|
|
|
2017-02-21 22:04:55 +03:00
|
|
|
This extensions enable Mercurial color mode. The feature is now directly
|
|
|
|
available in Mercurial core. You can access it using::
|
2008-11-27 00:58:07 +03:00
|
|
|
|
2017-02-21 22:04:55 +03:00
|
|
|
[ui]
|
|
|
|
color = auto
|
2014-10-06 16:18:03 +04:00
|
|
|
|
2017-02-21 22:04:55 +03:00
|
|
|
See :hg:`help color` for details.
|
2007-12-31 18:15:39 +03:00
|
|
|
'''
|
|
|
|
|
2016-04-16 22:23:56 +03:00
|
|
|
from __future__ import absolute_import
|
2007-12-31 18:15:39 +03:00
|
|
|
|
2017-02-21 22:04:55 +03:00
|
|
|
from mercurial import color
|
2007-12-31 18:15:39 +03:00
|
|
|
|
2016-08-23 18:26:08 +03:00
|
|
|
# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
|
2015-04-28 23:44:37 +03:00
|
|
|
# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
|
|
|
|
# be specifying the version(s) of Mercurial they are tested with, or
|
|
|
|
# leave the attribute unspecified.
|
2016-08-23 18:26:08 +03:00
|
|
|
testedwith = 'ships-with-hg-core'
|
2012-05-15 23:37:49 +04:00
|
|
|
|
2010-10-10 21:21:36 +04:00
|
|
|
def extsetup(ui):
|
2017-02-21 20:09:21 +03:00
|
|
|
# change default color config
|
2017-02-25 21:44:23 +03:00
|
|
|
color._enabledbydefault = True
|