stdio handling is broken

Yuya Nishihara yuya at
Mon Mar 13 02:19:54 EDT 2017

On Sun, 12 Mar 2017 20:14:08 -0700, Gregory Szorc wrote:
> On Sun, Mar 12, 2017 at 7:59 PM, Bryan O'Sullivan <bos at>
> wrote:
> That being said, I thought ui.{fin,fout,ferr} were just refs to the
> setbinary'd streams canonically available in util. Can't you just swap out
> ui.{fin,fout,ferr} in a uisetup() for the purposes of testing?

uisetup() takes a copy of ui if repo exists, and no modifications on ui but
for __class__ are propagated. Perhaps the easiest workaround is to run
"hg version" outside of a repo.

Anyway, I think #if guard is better.

More information about the Mercurial-devel mailing list