Show More
@@ -37,52 +37,6 b' repository path::' | |||
|
37 | 37 | |
|
38 | 38 | include::hg.1.gendoc.txt[] |
|
39 | 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 | ||
|
86 | 40 | SPECIFYING SINGLE REVISIONS |
|
87 | 41 | --------------------------- |
|
88 | 42 |
@@ -41,6 +41,7 b' unixtime offset::' | |||
|
41 | 41 | |
|
42 | 42 | "1145475591 -7200" (2006-04-19 21:39:51 +0200) |
|
43 | 43 | ''', |
|
44 | ||
|
44 | 45 | 'environment|env|Environment Variables': |
|
45 | 46 | r''' |
|
46 | 47 | HGEDITOR:: |
@@ -102,6 +103,51 b' EDITOR::' | |||
|
102 | 103 | PYTHONPATH:: |
|
103 | 104 | This is used by Python to find imported modules and may need to be set |
|
104 | 105 | appropriately if Mercurial is not installed system-wide. |
|
105 | ''' | |
|
106 | ''', | |
|
107 | ||
|
108 | "patterns|File Name Patterns": r''' | |
|
109 | Mercurial accepts several notations for identifying one or more | |
|
110 | files at a time. | |
|
111 | ||
|
112 | By default, Mercurial treats filenames as shell-style extended | |
|
113 | glob patterns. | |
|
114 | ||
|
115 | Alternate pattern notations must be specified explicitly. | |
|
116 | ||
|
117 | To use a plain path name without any pattern matching, start a | |
|
118 | name with "path:". These path names must match completely, from | |
|
119 | the root of the current repository. | |
|
120 | ||
|
121 | To use an extended glob, start a name with "glob:". Globs are | |
|
122 | rooted at the current directory; a glob such as "*.c" will match | |
|
123 | files ending in ".c" in the current directory only. | |
|
124 | ||
|
125 | The supported glob syntax extensions are "**" to match any string | |
|
126 | across path separators, and "{a,b}" to mean "a or b". | |
|
127 | ||
|
128 | To use a Perl/Python regular expression, start a name with "re:". | |
|
129 | Regexp pattern matching is anchored at the root of the repository. | |
|
130 | ||
|
131 | Plain examples: | |
|
132 | ||
|
133 | path:foo/bar a name bar in a directory named foo in the root of | |
|
134 | the repository | |
|
135 | path:path:name a file or directory named "path:name" | |
|
136 | ||
|
137 | Glob examples: | |
|
138 | ||
|
139 | glob:*.c any name ending in ".c" in the current directory | |
|
140 | *.c any name ending in ".c" in the current directory | |
|
141 | **.c any name ending in ".c" in the current directory, or | |
|
142 | any subdirectory | |
|
143 | foo/*.c any name ending in ".c" in the directory foo | |
|
144 | foo/**.c any name ending in ".c" in the directory foo, or any | |
|
145 | subdirectory | |
|
146 | ||
|
147 | Regexp examples: | |
|
148 | ||
|
149 | re:.*\.c$ any name ending in ".c", anywhere in the repository | |
|
150 | ||
|
151 | ''', | |
|
106 | 152 | } |
|
107 | 153 |
General Comments 0
You need to be logged in to leave comments.
Login now