# HG changeset patch # User timeless # Date 2016-01-06 07:55:57 # Node ID 84a9d7fc9cebf862b14ac23040eabd628fe7453b # Parent cddb5cd3d85a67ea85630c213a1597660e8c2b0b log: help provide sort by date example diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -3848,6 +3848,10 @@ def graft(ui, repo, *revs, **opts): hg log --debug -r . + - show revisions sorted by date:: + + hg log -r 'sort(all(), date)' + See :hg:`help revisions` and :hg:`help revsets` for more about specifying revisions.