liangzan liangzan - 1 year ago 96
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 Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download