equal
deleted
inserted
replaced
1 # color.py color output for Mercurial commands |
|
2 # |
|
3 # Copyright (C) 2007 Kevin Christen <kevin.christen@gmail.com> |
|
4 # |
|
5 # This software may be used and distributed according to the terms of the |
|
6 # GNU General Public License version 2 or any later version. |
|
7 |
|
8 '''enable Mercurial color mode (DEPRECATED) |
|
9 |
|
10 This extension enables Mercurial color mode. The feature is now directly |
|
11 available in Mercurial core. You can access it using:: |
|
12 |
|
13 [ui] |
|
14 color = auto |
|
15 |
|
16 See :hg:`help color` for details. |
|
17 ''' |
|
18 |
|
19 from __future__ import absolute_import |
|
20 |
|
21 from mercurial import color |
|
22 |
|
23 # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for |
|
24 # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should |
|
25 # be specifying the version(s) of Mercurial they are tested with, or |
|
26 # leave the attribute unspecified. |
|
27 testedwith = 'ships-with-hg-core' |
|
28 |
|
29 def extsetup(ui): |
|
30 # change default color config |
|
31 color._enabledbydefault = True |
|