mercurial/help/patterns.txt
changeset 41282 4fab8a7d2d72
parent 32795 efebc9f52ecb
equal deleted inserted replaced
41281:183df3df6031 41282:4fab8a7d2d72
    18 any files in subdirectories), ``rootfilesin:`` can be used, specifying an
    18 any files in subdirectories), ``rootfilesin:`` can be used, specifying an
    19 absolute path (relative to the repository root).
    19 absolute path (relative to the repository root).
    20 
    20 
    21 To use an extended glob, start a name with ``glob:``. Globs are rooted
    21 To use an extended glob, start a name with ``glob:``. Globs are rooted
    22 at the current directory; a glob such as ``*.c`` will only match files
    22 at the current directory; a glob such as ``*.c`` will only match files
    23 in the current directory ending with ``.c``.
    23 in the current directory ending with ``.c``. ``rootglob:`` can be used
       
    24 instead of ``glob:`` for a glob that is rooted at the root of the
       
    25 repository.
    24 
    26 
    25 The supported glob syntax extensions are ``**`` to match any string
    27 The supported glob syntax extensions are ``**`` to match any string
    26 across path separators and ``{a,b}`` to mean "a or b".
    28 across path separators and ``{a,b}`` to mean "a or b".
    27 
    29 
    28 To use a Perl/Python regular expression, start a name with ``re:``.
    30 To use a Perl/Python regular expression, start a name with ``re:``.
    62   foo/**         any file in directory foo plus all its subdirectories,
    64   foo/**         any file in directory foo plus all its subdirectories,
    63                  recursively
    65                  recursively
    64   foo/*.c        any name ending in ".c" in the directory foo
    66   foo/*.c        any name ending in ".c" in the directory foo
    65   foo/**.c       any name ending in ".c" in any subdirectory of foo
    67   foo/**.c       any name ending in ".c" in any subdirectory of foo
    66                  including itself.
    68                  including itself.
       
    69   rootglob:*.c   any name ending in ".c" in the root of the repository
    67 
    70 
    68 Regexp examples::
    71 Regexp examples::
    69 
    72 
    70   re:.*\.c$      any name ending in ".c", anywhere in the repository
    73   re:.*\.c$      any name ending in ".c", anywhere in the repository
    71 
    74