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?


使用hg log -r:


Just limit the display of hg log with -l/--limit .

Eg hg log -l 100 to only display 100 changes.

If you want to avoid scrolling, you can also pipe the output to a pager (eg hg log | less ) or use the pager extension.


hg log | tail -r
链接地址: http://www.djcxy.com/p/37542.html

上一篇: 为什么Mercurial中的分支和合并比Subversion更容易?

下一篇: Mercurial日志界面