Mercurial > hg > mercurial-source
changeset 30759:5271ae666152
help: add sections for revsets
author | timeless <timeless@mozdev.org> |
---|---|
date | Wed, 21 Sep 2016 17:05:27 -0400 |
parents | 96358865edb3 |
children | 266c2195651e |
files | mercurial/help/revsets.txt |
diffstat | 1 files changed, 19 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/help/revsets.txt +++ b/mercurial/help/revsets.txt @@ -12,11 +12,17 @@ e.g., ``\n`` is interpreted as a newline. To prevent them from being interpreted, strings can be prefixed with ``r``, e.g. ``r'...'``. +Prefix +====== + There is a single prefix operator: ``not x`` Changesets not in x. Short form is ``! x``. +Infix +===== + These are the supported infix operators: ``x::y`` @@ -71,16 +77,24 @@ in this case. This matches against all of "issue 1234", "issue:1234", "issue1234" and "bug(1234)". +Postfix +======= + There is a single postfix operator: ``x^`` Equivalent to ``x^1``, the first parent of each changeset in x. +Predicates +========== The following predicates are supported: .. predicatesmarker +Aliases +======= + New predicates (known as "aliases") can be defined, using any combination of existing predicates or other aliases. An alias definition looks like:: @@ -102,6 +116,8 @@ defines three aliases, ``h``, ``d``, and ``rs``. ``rs(0:tip, author)`` is exactly equivalent to ``reverse(sort(0:tip, author))``. +Equivalents +=========== Command line equivalents for :hg:`log`:: @@ -114,6 +130,9 @@ -P x -> !::x -l x -> limit(expr, x) +Examples +======== + Some sample queries: - Changesets on the default branch::