[PATCH] Log, annotate and diff use an environment pager if available

Matt Mackall mpm at selenic.com
Thu Mar 6 22:33:06 UTC 2008


On Thu, Mar 06, 2008 at 08:14:31PM +0100, Martin Geisler wrote:
> David Soria Parra <sn_ at gmx.net> writes:
> 
> > This time I'll changed also hgrc to document two new variables:
> > ui.pager can be used to override the default pager command and
> > ui.usepager can be used to disable the use of the pager at all, but it
> > defaults to True.
> 
> I'm sorry, but I think this is a bad idea -- if I want a pager, then
> I'll run it myself when needed. I want to decide on a case by case
> basis. Sometimes I want to run things through "colordiff.pl | less -R",
> sometimes I might want to run things through "tee", and sometimes I just
> want to use the scrollback buffer in my terminal.
> 
> I can see how this could be a little interesting for a platform where
> there is no sane pager available by default. Linux has all the pagers I
> need, but what about Windows?

Windows has had 'more' since at least DOS 2.0 days. Moreover, I hear
they have a nice GUI type of thing now too.

-- 
Mathematics is the supreme nostalgia of our time.



More information about the Mercurial-devel mailing list