liangzan liangzan - 1 month ago 17
Bash Question

View Mercurial log/status with less by default

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.

Answer

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.

Comments