git - 我可以让 hg log 以相反的顺序打印历史记录吗?

标签 git mercurial history logging reverse

如果不是,这是 git 的特性吗?

最佳答案

YGL's answer是正确的日志,请参阅this thread :

The hint from "hg help log" might be:
"If no revision range is specified, the default is tip:0". Combine this with the knowlegde from "hg help multirevs". That is:

hg 日志 -r :

多转速:

When Mercurial accepts more than one revision, they may be specified individually, or provided as a topologically continuous range, separated by the ":" character.

The syntax of range notation is [BEGIN]:[END], where BEGIN and END are revision identifiers.
Both BEGIN and END are optional.
If BEGIN is not specified, it defaults to revision number 0.
If END is not specified, it defaults to the tip.
The range ":" thus means "all revisions".

如果 BEGIN 大于 END,则以相反的顺序处理修订。

A range acts as a closed interval. This means that a range of 3:5 gives 3, 4 and 5.
Similarly, a range of 9:6 gives 9, 8, 7, and 6.


注意:如果你想对 Graphlog 做同样的事情(glog 的行为类似于普通 log 命令(的子集),除了它还使用左侧的 ASCII 字符打印代表修订历史的图表log.),您将需要 a patch .

I should warn you that it will be very slow for large graphs, particularly 0:tip.
See patch 1 and patch 2. I am working on improving that.

关于git - 我可以让 hg log 以相反的顺序打印历史记录吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2795994/

相关文章:

ruby-on-rails - 无法加载从 GitHub 获取的 Rails 应用; rake,rails 服务器不工作

GIT:如何在不覆盖当前提交的情况下 check out 上一次提交的文件?

mercurial - 限制 Mercurial 存储库访问

svn - 在 Mercurial/Hg 中 check out 文件

sql-server - 维护为拆分成多个表的实体的审核日志

Java集合框架历史

git - 有一个新的 .gitignore 告诉我是否有任何文件已经与跟踪文件匹配

git tf 配置 "A server path must be absolute"

mercurial - 使用基于 GUI 的工具致力于 BitBucket

r - 禁用保存历史记录