[PATCH STABLE] pager: set MORE=FRX on OS X and FreeBSD
Yuya Nishihara
yuya at tcha.org
Sat Apr 22 16:14:22 UTC 2017
On Sat, 22 Apr 2017 10:30:37 -0400, Augie Fackler wrote:
> > On Apr 21, 2017, at 23:45, Yuya Nishihara <yuya at tcha.org> wrote:
> >> For changing "fallbackpager" from "more" to "less", I'm +0.5 but I may be
> >> biased. Others should comment.
> >
> > +1 for this. Perhaps that is the default of git?
>
> `less` is a better default if and only if it's available - in my (limited) research, `more` was the only pager we can be sure exists. The way git handles this is that the default-default is `less`, but you're one compile-time config knob from changing it to something else. Same for the default-default LESS environment variable.
I know "less" isn't available on some Unices (e.g. ancient SunOS), but our
current default-default sounds really bad on OSX. If we stick to "more" as
the only default, we should disable the color as well and tell packagers to
set better defaults.
> We can probably get away with `less` as the default-default, but we should still strongly encourage packagers to do the right thing with a config rather than patching the code (since they don't need to.)
+1 for encouraging packagers to set config anyway.
More information about the Mercurial-devel
mailing list