[PATCH] color: use ui.formatted() to test TTYness, not sys.stdout.isatty()

Matt Mackall mpm at selenic.com
Sun May 1 05:26:08 CDT 2011


On Sun, 2011-05-01 at 12:14 +0200, Brodie Rao wrote:
> # HG changeset patch
> # User Brodie Rao <brodie at bitheap.org>
> # Date 1304244862 -7200
> # Node ID de9e9fed0d5ed6eb6f35ad7f387e3c447b4e22e8
> # Parent  3e9e02a41dfb0a85ec0968681e416d579ee875db
> color: use ui.formatted() to test TTYness, not sys.stdout.isatty()

Awesome, queued.

-- 
Mathematics is the supreme nostalgia of our time.




More information about the Mercurial-devel mailing list