changeset 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 03d345da0579
children 69a0d22b9677
files mercurial/help/patterns.txt
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/help/patterns.txt	Wed Jan 29 23:47:54 2014 +0900
+++ b/mercurial/help/patterns.txt	Thu Jan 30 15:03:36 2014 +0900
@@ -30,9 +30,8 @@
 pattern.
 
 All patterns, except for ``glob:`` specified in command line (not for
-``-I`` or ``-X`` options) or ``.hgignore`` file, can match also
-against directories: files under matched directories are treated as
-matched.
+``-I`` or ``-X`` options), can match also against directories: files
+under matched directories are treated as matched.
 
 Plain examples::