Mercurial > hg
comparison mercurial/help/patterns.txt @ 20329:45f23b1ff345 stable
doc: fix mistake about matching against directories in "pattern.txt"
This fixes mistake of documentation about matching against directories
in "pattern.txt" introduced by 50db996bccaf.
".hgignore" treats specified "glob:" pattern as same as one specified
for "-X" option: it can match against directories, too.
For reference, extra regexp string appended to specified pattern for
each types are listed below: see also "match.match()" and
"match._regex()" for detail.
============= ========== ===============
type cmdline -I/-X
============= ========== ===============
glob/relglob '$' '(?:/|$)'
path/relpath '(?:/|$)' '(?:/|$)'
re/relre (none) (none)
============= ========== ===============
Appending '$' means that the specified pattern should match against
only files.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Thu, 30 Jan 2014 15:03:36 +0900 |
parents | 50db996bccaf |
children | f1a3ae7c15df |
comparison
equal
deleted
inserted
replaced
20328:03d345da0579 | 20329:45f23b1ff345 |
---|---|
28 The latter expects null delimited patterns while the former expects line | 28 The latter expects null delimited patterns while the former expects line |
29 feeds. Each string read from the file is itself treated as a file | 29 feeds. Each string read from the file is itself treated as a file |
30 pattern. | 30 pattern. |
31 | 31 |
32 All patterns, except for ``glob:`` specified in command line (not for | 32 All patterns, except for ``glob:`` specified in command line (not for |
33 ``-I`` or ``-X`` options) or ``.hgignore`` file, can match also | 33 ``-I`` or ``-X`` options), can match also against directories: files |
34 against directories: files under matched directories are treated as | 34 under matched directories are treated as matched. |
35 matched. | |
36 | 35 |
37 Plain examples:: | 36 Plain examples:: |
38 | 37 |
39 path:foo/bar a name bar in a directory named foo in the root | 38 path:foo/bar a name bar in a directory named foo in the root |
40 of the repository | 39 of the repository |