Pager extension deprecated?

Tony Mechelynck antoine.mechelynck at gmail.com
Fri Jul 5 21:33:41 UTC 2019


On Fri, Jul 5, 2019 at 8:38 PM <mh-mercurial at online.de> wrote:
>
> Hi all
>
> The pager extension source code says it is deprecated. Would it make
> sense to state that in ``help`` and also in the output of ``hg --version``?

It is mentioned: type "hg help extensions" at the command-line and
you'll see it. But even a "deprecated" extension (and there are
others, e.g. graphlog and fetch) won't necessarily be removed in the
next version, or even the oone after that.
>
> I happened to notice as leaving it enabled had the opposite effect (e.g.
> ``hg help pager`` didn't invoke the pager, but disabling the extension
> did), which I thought was most strange.

I have the pager extension enabled and it works for me. Once it is
enabled, you can use --pager=yes or --pager=no on the hg command line
to use it or not during a particular run of Mercurial; or you can have
it apply to some or all hg subcommands by means of config file (.hgrc
etc) entries.

See also:
    * hg --config='extensions.pager=' help pager
    * hg help hgrc        and scroll down to the "pager" section (e.g.
at line 1346 for Mercurial 4.5.2, which is what openSUSE distributes
with ts "latest stable" Leap 15.1 distribution).
>
> Thanks,
> Marcus

Best regads,
Tony.



More information about the Mercurial mailing list