Patchwork [6,of,6] doc: add description about pattern matching against directories

login
register
mail settings
Submitter Katsunori FUJIWARA
Date Jan. 17, 2014, 2:57 p.m.
Message ID <a184e98b870965372887.1389970628@juju>
Download mbox | patch
Permalink /patch/3368/
State Accepted
Commit 50db996bccaf4522c91872322fa096bc861e0cf5
Headers show

Comments

Katsunori FUJIWARA - Jan. 17, 2014, 2:57 p.m.
# HG changeset patch
# User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
# Date 1389970511 -32400
#      Fri Jan 17 23:55:11 2014 +0900
# Node ID a184e98b8709653728877d6ef6cc8c13ca47ffcf
# Parent  6c34bdf1470b2d13e3e4e48b158500954ce00344
doc: add description about pattern matching against directories

Before this patch, there is no explicit description about pattern
matching against directories, even though users may understand it from
"plain examples" in "hg help patterns".

This patch adds description about pattern matching against
directories.
Matt Mackall - Jan. 18, 2014, 3:09 a.m.
On Fri, 2014-01-17 at 23:57 +0900, FUJIWARA Katsunori wrote:
> # HG changeset patch
> # User FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
> # Date 1389970511 -32400
> #      Fri Jan 17 23:55:11 2014 +0900
> # Node ID a184e98b8709653728877d6ef6cc8c13ca47ffcf
> # Parent  6c34bdf1470b2d13e3e4e48b158500954ce00344
> doc: add description about pattern matching against directories

These are queued for default, thanks.

Patch

diff --git a/mercurial/help/patterns.txt b/mercurial/help/patterns.txt
--- a/mercurial/help/patterns.txt
+++ b/mercurial/help/patterns.txt
@@ -29,6 +29,11 @@ 
 feeds. Each string read from the file is itself treated as a file
 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.
+
 Plain examples::
 
   path:foo/bar   a name bar in a directory named foo in the root