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

login
register
mail settings
Submitter timeless@mozdev.org
Date Jan. 6, 2016, 7:56 a.m.
Message ID <394d387335f2609256a4.1452067009@waste.org>
Download mbox | patch
Permalink /patch/12567/
State Accepted
Headers show

Comments

timeless@mozdev.org - Jan. 6, 2016, 7:56 a.m.
# HG changeset patch
# User timeless <timeless@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
Augie Fackler - Jan. 7, 2016, 12:29 a.m.
On Wed, Jan 06, 2016 at 01:56:49AM -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless@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

Queued, thanks.

>
> 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.
>
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel@selenic.com
> https://selenic.com/mailman/listinfo/mercurial-devel

Patch

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.