On Tue, Apr 6, 2010 at 4:27 PM, Stanimir Stamenkov <[email protected]> wrote:
> <http://bitbucket.org/tortoisehg/stable/wiki/ReleaseNotes#tortoisehg-101>:
>
>>     * wincolor extension and its pyreadline prerequisite are now packaged
>
> How is the coloring controlled in means when does it become
> effective?  On one machine I'm trying, the coloring is done only
> issuing:
>
> hg stat
>
> On antoher machine I have to explicitly specify:
>
> hg stat --color always
>
> I've put the following in my %USERPROFILE%\.hgrc:
>
> [extensions]
> hgext.wincolor =
>
> On both machines issuing 'hg help stat' I see at the end:
>
>>     --color      when to colorize (always, auto, or never) (default: auto)
>
> How does the 'auto' work?

--color is a property of the underlying color extension, and is
completely unaffected by wincolor.

The color.py logic in hg-1.5.1 looks like this:

        if (opts['no_color'] or opts['color'] == 'never' or
            (opts['color'] == 'auto' and (os.environ.get('TERM') == 'dumb'
                                          or not sys.__stdout__.isatty()))):
           "apply color"

--
Steve Borho

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to