Buffering in mercurial with redirected output

Greg Ward greg-hg at gerg.ca
Tue Jan 4 16:44:25 CST 2011


On Tue, Jan 4, 2011 at 4:54 PM, Sergey Antonov <sergant_ at mail.ru> wrote:
>> You could invoke hg with "python -u".  Or set PYTHONUNBUFFERED=1.
>> "man python" for details.
>
> I've tried to set PYTHONUNBUFFERED=1 environment variable, but this doesn't
> work for me. I'm using a binary package of mercurial hg.exe v1.7.3 on
> Windows.

Ahh.  Windows + freeze = all bets are off.  Anything could happen.
Most likely the freezing process that generates hg.exe creates an
executable that deliberately ignores PYTHON* env vars.

Good luck.

Greg


More information about the Mercurial-devel mailing list