问题
How can I make mercurial order the output of hg log by commit date?
The output seems to be ordered by the date I pull the commits into my repository instead of when they were committed.
回答1:
You need to use a revset:
$ hg log -r 'sort(all(), date)'
If you want to see the most recent commits first, do:
$ hg log -r 'sort(all(), -date)'
See hg help -v revsets for more details.
来源:https://stackoverflow.com/questions/47269015/how-to-make-mercurial-sort-the-output-of-hg-log-by-commit-date