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