hgbook

diff en/filenames.tex @ 186:08d64601d4bd

Add links to rev info.
author Bryan O'Sullivan <bos@serpentine.com>
date Thu Apr 05 23:50:42 2007 -0700 (2007-04-05)
parents 1e013fbe35f7
children d3dd1bedba3c
line diff
     1.1 --- a/en/filenames.tex	Fri Dec 29 17:54:14 2006 -0800
     1.2 +++ b/en/filenames.tex	Thu Apr 05 23:50:42 2007 -0700
     1.3 @@ -152,6 +152,15 @@
     1.4  token.  This small example illustrates the difference between the two.
     1.5  \interaction{filenames.glob.star-starstar}
     1.6  
     1.7 +When you're writing a glob pattern, bear in mind that Mercurial will
     1.8 +treat a pattern that matches a directory name as ``match every file
     1.9 +under that directory''.  For example, a glob pattern of
    1.10 +``\texttt{**c}'' means \emph{both} ``match files ending in
    1.11 +`\texttt{c}''' ``any file under all directories that end in
    1.12 +`\texttt{c}'''.  I personally find this behaviour counterintuitive.
    1.13 +If you need to write a pattern that means ``match \emph{only} files'',
    1.14 +you'll need to express it as a regular expression instead; see below.
    1.15 +
    1.16  \subsection{Regular expression matching with \texttt{re} patterns}
    1.17  
    1.18  Mercurial accepts the same regular expression syntax as the Python