如果不是,这是 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]
, whereBEGIN
andEND
are revision identifiers.
BothBEGIN
andEND
are optional.
IfBEGIN
is not specified, it defaults to revision number 0.
IfEND
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 of9: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/