[PATCH] progress: use stderr instead of stdin; check stderr.isatty()

Thomas Arendsen Hein thomas at intevation.de
Tue Mar 16 15:23:46 CDT 2010


* Augie Fackler <durin42 at gmail.com> [20100316 19:09]:
> # HG changeset patch
> # User Augie Fackler <durin42 at gmail.com>
> # Date 1268682717 18000
> # Node ID 11ee2fee2200ae8c0d66b87de46d84399dc128da
> # Parent  d8d1b56d451916f4da0a82c456ca397565924fcb
> progress: use stderr instead of stdin; check stderr.isatty()
> 
> 
> This means that progress bars will continue to show on the terminal
> when both stdin and stdout are redirected.

As discussed on IRC:
Looks fine, except for failing tests which need a way to force
progress bars even with redirected stderr.

Regards,
Thomas

-- 
thomas at intevation.de - http://intevation.de/~thomas/ - OpenPGP key: 0x5816791A
Intevation GmbH, Neuer Graben 17, 49074 Osnabrueck - AG Osnabrueck, HR B 18998
Geschaeftsfuehrer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner


More information about the Mercurial-devel mailing list