Mercurial > hgbook
changeset 188:d3dd1bedba3c
Backed out changeset 7f07aca44938d38b30ae8713946346123cdf97b6
Bad behaviour has gone away.
author | Bryan O'Sullivan <bos@serpentine.com> |
---|---|
date | Mon, 16 Apr 2007 14:22:25 -0700 |
parents | 7f07aca44938 |
children | 3c6c5b551c96 |
files | en/examples/filenames.glob.range.out en/filenames.tex |
diffstat | 2 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/en/examples/filenames.glob.range.out Mon Mar 26 21:58:24 2007 -0700 +++ b/en/examples/filenames.glob.range.out Mon Apr 16 14:22:25 2007 -0700 @@ -1,7 +1,3 @@ $ \textbf{hg status 'glob:**[nr-t]'} -A examples/simple.py ? MANIFEST.in -? examples/performant.py -? src/watcher/_watcher.c -? src/watcher/watcher.py ? src/xyzzy.txt
--- a/en/filenames.tex Mon Mar 26 21:58:24 2007 -0700 +++ b/en/filenames.tex Mon Apr 16 14:22:25 2007 -0700 @@ -152,15 +152,6 @@ token. This small example illustrates the difference between the two. \interaction{filenames.glob.star-starstar} -When you're writing a glob pattern, bear in mind that Mercurial will -treat a pattern that matches a directory name as ``match every file -under that directory''. For example, a glob pattern of -``\texttt{**c}'' means \emph{both} ``match files ending in -`\texttt{c}''' ``any file under all directories that end in -`\texttt{c}'''. I personally find this behaviour counterintuitive. -If you need to write a pattern that means ``match \emph{only} files'', -you'll need to express it as a regular expression instead; see below. - \subsection{Regular expression matching with \texttt{re} patterns} Mercurial accepts the same regular expression syntax as the Python