[PATCH] parents: provide equivalent revsets in help

Augie Fackler raf at durin42.com
Wed Dec 9 11:55:47 CST 2015


On Tue, Dec 08, 2015 at 02:27:18PM -0600, timeless wrote:
> # HG changeset patch
> # User timeless <timeless at mozdev.org>
> # Date 1449606068 0
> #      Tue Dec 08 20:21:08 2015 +0000
> # Node ID 9ceab36b94f34ac90b0d639f75710bc3d634ce21
> # Parent  42aa0e570eaa364a622bc4443b0bcb79b1100a58
> parents: provide equivalent revsets in help

queued, thanks

>
> diff --git a/mercurial/commands.py b/mercurial/commands.py
> --- a/mercurial/commands.py
> +++ b/mercurial/commands.py
> @@ -5285,6 +5285,13 @@
>      last changed (before the working directory revision or the
>      argument to --rev if given) is printed.
>
> +    This command is equivalent to::
> +
> +        hg log -r "parents()" or
> +        hg log -r "parents(REV)" or
> +        hg log -r "max(file(FILE))" or
> +        hg log -r "max(::REV and file(FILE))"
> +
>      See :hg:`summary` and :hg:`help revsets` for related information.
>
>      Returns 0 on success.
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> https://selenic.com/mailman/listinfo/mercurial-devel


More information about the Mercurial-devel mailing list