[PATCH] Log, annotate and diff use an environment pager if available
Tim Bell
Tim.Bell at Sun.COM
Thu Mar 6 18:12:59 CST 2008
Martin Geisler wrote:
> 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 agree with Martin. If you do this, leave it off by default.
Sometimes the consumer of the output is a pipeline and not a human. I don't want a pager to
automatically try to 'help' me when my script is trying to send the output to grep or some
other destination.
Tim
More information about the Mercurial-devel
mailing list