Mercurial > hg
comparison help/patterns.txt @ 9540:cad36e496640
help: un-indent help topics
The help topics are reused in the HTML documentation, and there it
looks odd that whole sections are indented. We now only indent it for
output on the terminal.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Sun, 04 Oct 2009 12:18:43 +0200 |
parents | c904e76e3834 |
children | 585d2ffe969b |
comparison
equal
deleted
inserted
replaced
9539:c904e76e3834 | 9540:cad36e496640 |
---|---|
1 Mercurial accepts several notations for identifying one or more | 1 Mercurial accepts several notations for identifying one or more files |
2 files at a time. | 2 at a time. |
3 | 3 |
4 By default, Mercurial treats filenames as shell-style extended | 4 By default, Mercurial treats filenames as shell-style extended glob |
5 glob patterns. | 5 patterns. |
6 | 6 |
7 Alternate pattern notations must be specified explicitly. | 7 Alternate pattern notations must be specified explicitly. |
8 | 8 |
9 To use a plain path name without any pattern matching, start it | 9 To use a plain path name without any pattern matching, start it with |
10 with "path:". These path names must completely match starting at | 10 "path:". These path names must completely match starting at the |
11 the current repository root. | 11 current repository root. |
12 | 12 |
13 To use an extended glob, start a name with "glob:". Globs are | 13 To use an extended glob, start a name with "glob:". Globs are rooted |
14 rooted at the current directory; a glob such as "``*.c``" will | 14 at the current directory; a glob such as "``*.c``" will only match |
15 only match files in the current directory ending with ".c". | 15 files in the current directory ending with ".c". |
16 | 16 |
17 The supported glob syntax extensions are "``**``" to match any | 17 The supported glob syntax extensions are "``**``" to match any string |
18 string across path separators and "{a,b}" to mean "a or b". | 18 across path separators and "{a,b}" to mean "a or b". |
19 | 19 |
20 To use a Perl/Python regular expression, start a name with "re:". | 20 To use a Perl/Python regular expression, start a name with "re:". |
21 Regexp pattern matching is anchored at the root of the repository. | 21 Regexp pattern matching is anchored at the root of the repository. |
22 | 22 |
23 Plain examples:: | 23 Plain examples:: |
24 | 24 |
25 path:foo/bar a name bar in a directory named foo in the root | 25 path:foo/bar a name bar in a directory named foo in the root |
26 of the repository | 26 of the repository |
27 path:path:name a file or directory named "path:name" | 27 path:path:name a file or directory named "path:name" |
28 | 28 |
29 Glob examples:: | 29 Glob examples:: |
30 | 30 |
31 glob:*.c any name ending in ".c" in the current directory | 31 glob:*.c any name ending in ".c" in the current directory |
32 *.c any name ending in ".c" in the current directory | 32 *.c any name ending in ".c" in the current directory |
33 **.c any name ending in ".c" in any subdirectory of the | 33 **.c any name ending in ".c" in any subdirectory of the |
34 current directory including itself. | 34 current directory including itself. |
35 foo/*.c any name ending in ".c" in the directory foo | 35 foo/*.c any name ending in ".c" in the directory foo |
36 foo/**.c any name ending in ".c" in any subdirectory of foo | 36 foo/**.c any name ending in ".c" in any subdirectory of foo |
37 including itself. | 37 including itself. |
38 | 38 |
39 Regexp examples:: | 39 Regexp examples:: |
40 | 40 |
41 re:.*\.c$ any name ending in ".c", anywhere in the repository | 41 re:.*\.c$ any name ending in ".c", anywhere in the repository |