Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial log interface

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?

like image 945
XLR3204S Avatar asked Aug 02 '10 10:08

XLR3204S


2 Answers

Use hg log -r:

like image 131
Niall C. Avatar answered Sep 27 '22 20:09

Niall C.


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.

like image 20
tonfa Avatar answered Sep 27 '22 19:09

tonfa