mercurial/help/filesets.txt
changeset 30729 a4bc8fff67fc
parent 23109 cf56f7a60b45
child 30731 b8a188a6f191
equal deleted inserted replaced
30728:7438cb35979a 30729:a4bc8fff67fc
    13 
    13 
    14 Special characters can be used in quoted identifiers by escaping them,
    14 Special characters can be used in quoted identifiers by escaping them,
    15 e.g., ``\n`` is interpreted as a newline. To prevent them from being
    15 e.g., ``\n`` is interpreted as a newline. To prevent them from being
    16 interpreted, strings can be prefixed with ``r``, e.g. ``r'...'``.
    16 interpreted, strings can be prefixed with ``r``, e.g. ``r'...'``.
    17 
    17 
       
    18 See also :hg:`help patterns`.
       
    19 
       
    20 Prefix
       
    21 ======
       
    22 
    18 There is a single prefix operator:
    23 There is a single prefix operator:
    19 
    24 
    20 ``not x``
    25 ``not x``
    21   Files not in x. Short form is ``! x``.
    26   Files not in x. Short form is ``! x``.
       
    27 
       
    28 Infix
       
    29 =====
    22 
    30 
    23 These are the supported infix operators:
    31 These are the supported infix operators:
    24 
    32 
    25 ``x and y``
    33 ``x and y``
    26   The intersection of files in x and y. Short form is ``x & y``.
    34   The intersection of files in x and y. Short form is ``x & y``.
    30   forms: ``x | y`` and ``x + y``.
    38   forms: ``x | y`` and ``x + y``.
    31 
    39 
    32 ``x - y``
    40 ``x - y``
    33   Files in x but not in y.
    41   Files in x but not in y.
    34 
    42 
       
    43 Predicates
       
    44 ==========
       
    45 
    35 The following predicates are supported:
    46 The following predicates are supported:
    36 
    47 
    37 .. predicatesmarker
    48 .. predicatesmarker
       
    49 
       
    50 Examples
       
    51 ========
    38 
    52 
    39 Some sample queries:
    53 Some sample queries:
    40 
    54 
    41 - Show status of files that appear to be binary in the working directory::
    55 - Show status of files that appear to be binary in the working directory::
    42 
    56 
    59     hg revert "set:copied() and binary() and size('>1M')"
    73     hg revert "set:copied() and binary() and size('>1M')"
    60 
    74 
    61 - Remove files listed in foo.lst that contain the letter a or b::
    75 - Remove files listed in foo.lst that contain the letter a or b::
    62 
    76 
    63     hg remove "set: 'listfile:foo.lst' and (**a* or **b*)"
    77     hg remove "set: 'listfile:foo.lst' and (**a* or **b*)"
    64 
       
    65 See also :hg:`help patterns`.