[PATCH 2 of 2] pager: skip running the pager if it's set to 'cat'

Gregory Szorc gregory.szorc at gmail.com
Sat Mar 18 13:25:26 EDT 2017


On Thu, Mar 16, 2017 at 9:44 AM, Augie Fackler <raf at durin42.com> wrote:

>
> On Mar 15, 2017, at 21:12, Jun Wu <quark at fb.com> wrote:
>
> Another thing that git does (reasonably, I think) is to set default
> environment variable. Say if we decide to go with shell=False, set LESS=FRX
> so people using pager.pager=less will have a better experience.
>
>
> We should add that environment variable iff it's not already set in the
> user's environment, of course.
>

+1

I'll also 2nd LESS=FRX as a reasonable default. That is:

-F quit if output smaller than one screen
-R emit ansi color sequences (but not other raw control characters)
-X do not send termap init and deinit strings to terminal


>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mercurial-scm.org/pipermail/mercurial-devel/attachments/20170318/b5b3d3d9/attachment.html>


More information about the Mercurial-devel mailing list