View Mercurial log/status with less by default

mercurial, shell

Solution

See the pager extension:

Browse command output using an external pager

It's distributed with mercurial, so you just need to activate it in `hgrc`.

Problem

Is there a way to make mercurial use less to show me the logs/diffs/whatever by default? Now mercurial just displays everything when I type 'hg log'. I suppose I can use aliases like 'hg log = less hg log' if I want to. I'm wondering if there're better solutions.

Original source

Related problems