On Mon, Mar 20, 2017 at 12:53:17AM -0400, Matt Harbison wrote: > # HG changeset patch > # User Matt Harbison <matt_harbi...@yahoo.com> > # Date 1489983573 14400 > # Mon Mar 20 00:19:33 2017 -0400 > # Node ID a32b379ffe151b8b094dcd67ef5b6bd551203dbe > # Parent b1bebed54e9371708e1cd1eba63f0cedadfdf035 > pager: fix the invocation of `more` on Windows
I've taken this one. And I'm sad. (Thanks! I blame windows for the sadness, not you.) > > After 9335dc6b2a9c, invoking `more` no longer works. Instead, a warning is > printed and the pager is disabled. Invoking `more.com` works. > > diff --git a/mercurial/ui.py b/mercurial/ui.py > --- a/mercurial/ui.py > +++ b/mercurial/ui.py > @@ -839,7 +839,10 @@ > # less(1), not more(1), and on debian it's > # sensible-pager(1). We should probably also give the system > # default editor command similar treatment. > - envpager = encoding.environ.get('PAGER', 'more') > + envpager = 'more' > + if pycompat.osname == 'nt': > + envpager = 'more.com' > + envpager = encoding.environ.get('PAGER', envpager) > pagercmd = self.config('pager', 'pager', envpager) > if not pagercmd: > return > _______________________________________________ > Mercurial-devel mailing list > Mercurial-devel@mercurial-scm.org > https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel _______________________________________________ Mercurial-devel mailing list Mercurial-devel@mercurial-scm.org https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel