hg log-如何获取最近的5条日志条目? [英] hg log - How to get the last 5 log entries?
本文介绍了hg log-如何获取最近的5条日志条目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Mercurial项目,其中包含数百个提交.
I have a Mercurial project that has hundreds of commits.
当我想查看最新输入的内容时
When I want to look at the most recent entries I type
hg log
,然后等待所有内容打印出来,然后滚动回到顶部.
and then wait for everything to print out and then scroll back to the top.
我如何只打印5个最新条目?
How do I print out just the 5 most-recent entries?
推荐答案
使用limit参数:hg log --limit 5
Use the limit parameter: hg log --limit 5
这篇关于hg log-如何获取最近的5条日志条目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文