doc/hg.1.txt
changeset 3799 eb66d76c7746
parent 3798 6f0c42d50394
child 4635 63b9d2deed48
equal deleted inserted replaced
3798:6f0c42d50394 3799:eb66d76c7746
    34     fast and the static-http:// protocol which is much slower but does not
    34     fast and the static-http:// protocol which is much slower but does not
    35     require a special server on the web host.
    35     require a special server on the web host.
    36 
    36 
    37 
    37 
    38 include::hg.1.gendoc.txt[]
    38 include::hg.1.gendoc.txt[]
    39 
       
    40 FILE NAME PATTERNS
       
    41 ------------------
       
    42 
       
    43     Mercurial accepts several notations for identifying one or more
       
    44     files at a time.
       
    45 
       
    46     By default, Mercurial treats filenames as shell-style extended
       
    47     glob patterns.
       
    48 
       
    49     Alternate pattern notations must be specified explicitly.
       
    50 
       
    51     To use a plain path name without any pattern matching, start a
       
    52     name with "path:".  These path names must match completely, from
       
    53     the root of the current repository.
       
    54 
       
    55     To use an extended glob, start a name with "glob:".  Globs are
       
    56     rooted at the current directory; a glob such as "*.c" will match
       
    57     files ending in ".c" in the current directory only.
       
    58 
       
    59     The supported glob syntax extensions are "**" to match any string
       
    60     across path separators, and "{a,b}" to mean "a or b".
       
    61 
       
    62     To use a Perl/Python regular expression, start a name with "re:".
       
    63     Regexp pattern matching is anchored at the root of the repository.
       
    64 
       
    65     Plain examples:
       
    66 
       
    67     path:foo/bar   a name bar in a directory named foo in the root of
       
    68                    the repository
       
    69     path:path:name a file or directory named "path:name"
       
    70 
       
    71     Glob examples:
       
    72 
       
    73     glob:*.c       any name ending in ".c" in the current directory
       
    74     *.c            any name ending in ".c" in the current directory
       
    75     **.c           any name ending in ".c" in the current directory, or
       
    76                    any subdirectory
       
    77     foo/*.c        any name ending in ".c" in the directory foo
       
    78     foo/**.c       any name ending in ".c" in the directory foo, or any
       
    79                    subdirectory
       
    80 
       
    81     Regexp examples:
       
    82 
       
    83     re:.*\.c$      any name ending in ".c", anywhere in the repository
       
    84 
       
    85 
    39 
    86 SPECIFYING SINGLE REVISIONS
    40 SPECIFYING SINGLE REVISIONS
    87 ---------------------------
    41 ---------------------------
    88 
    42 
    89     Mercurial accepts several notations for identifying individual
    43     Mercurial accepts several notations for identifying individual