[PATCH STABLE] pager: wrap _runcommand() no matter if stdout is redirected

Sean Farley sean at farley.io
Thu Jan 19 13:29:00 EST 2017


Yuya Nishihara <yuya at tcha.org> writes:

> # HG changeset patch
> # User Yuya Nishihara <yuya at tcha.org>
> # Date 1484834492 -32400
> #      Thu Jan 19 23:01:32 2017 +0900
> # Branch stable
> # Node ID f3ca8b7e0e2df7507661adf5957c51e39bc6b5b1
> # Parent  262c2be8ea5a4f36fb7348cb5a940cf78f2dffa9
> pager: wrap _runcommand() no matter if stdout is redirected
>
> We've made chg utilize the common code path implemented in pager.py (by
> 815e1cefd082 and 493935e0327a), but the chg server does not always start
> with a tty. Because of this, uisetup() of the pager extension could be
> skipped on the chg server.
>
> Kudos given to Sean Farley for dogfooding new chg and spotting this problem.

\o/ This fixes the issue for me!!


More information about the Mercurial-devel mailing list