[PATCH 2 of 2 v2] log: help provide sort by date example

timeless timeless at mozdev.org
Wed Jan 6 01:56:49 CST 2016


# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1452066957 0
#      Wed Jan 06 07:55:57 2016 +0000
# Node ID 394d387335f2609256a475e3dd15ad11f9218b5e
# Parent  a5a9e00cc53cb980ca61b88aa820d38dacfd481b
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 @@
 
           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.
 


More information about the Mercurial-devel mailing list