I've been going through the tutorial at hginit.com, but I've found a rather inconvenient aspect of the hg log
feature. Basically, when I type it, I get the newest changes on top, and the oldest at the bottom. But this is simply annoying, as most of the time, you want to see the newest revisions. So... say I have 100 changesets, and I want to have a look over the 98th one. Do I scroll all the way up? Or is there a way to make Hg (Mercurial) list the changes the other way around?
Use hg log -r:
Just limit the display of hg log
with -l/--limit
.
E.g. hg log -l 100
to only display 100 changes.
If you want to avoid scrolling, you can also pipe the output to a pager (e.g. hg log | less
) or use the pager extension.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With