[PATCH] revset aliases

Alexander Solovyov alexander at solovyov.net
Sun May 1 03:23:53 CDT 2011


On Sun, May 1, 2011 at 10:21, Alexander Solovyov <alexander at solovyov.net> wrote:
> --- a/mercurial/help/revsets.txt
> +++ b/mercurial/help/revsets.txt
> @@ -61,6 +61,17 @@ The following predicates are supported:
>
>  .. predicatesmarker
>
> +This language also supports aliases, both symbolic and predicates, which you can
> +put in an ``.hgrc`` with a following syntax::
> +
> +  [revsetalias]
> +  h = heads()
> +  d($1) = sort($1, date)
> +  rs($1, $2) = reverse(sort($1, $2))
> +
> +You can use any syntax for arguments, simple substitution is used to replace
> +them.
> +
>  Command line equivalents for :hg:`log`::

I'm not actually sure this part of documentation makes sense, but I'm
struggling to write anything better. :(

-- 
Alexander


More information about the Mercurial-devel mailing list