我有一个 Mercurial 项目,它有数百次提交。
当我想查看我键入的最新条目时
hg log
然后等所有东西都打印出来再滚回顶部。
我怎样才能只打印出5个最近的条目?
Use the limit parameter: hg log --limit 5
hg log --limit 5
In completion of the Michael Markert response you can use the shortversion
hg log -l 10
In addition if you want you can define via the option -b that you want only last commit from the current branch.
-b
You can also do
hg log -l 10 -b [your branch]
for check 10 last commit from the branch you want
Of course you can go further with -d like this :
-d
hg log -l 1 -d "feb 2015 to apr 2015"
This will give you last 10 commits within this date range (3 char for each months)
And goes on..
Full example and option are available in this link : Here