# HG changeset patch # User Alexis S. L. Carvalho # Date 1173578445 10800 # Node ID 51ee2868a57177e161a612da1db5398016af6a2a # Parent da0588996ecc28e5d37fc0d4e3d945bce6bf859d util._matcher: update comments This should match the code better. Except for bugs... diff -r da0588996ecc -r 51ee2868a571 mercurial/util.py --- a/mercurial/util.py Sat Mar 10 23:00:43 2007 -0300 +++ b/mercurial/util.py Sat Mar 10 23:00:45 2007 -0300 @@ -397,19 +397,23 @@ inc - patterns to include exc - patterns to exclude head - a regex to prepend to patterns to control whether a match is rooted + dflt_pat - if a pattern in names has no explicit type, assume this one + src - where these patterns came from (e.g. .hgignore) a pattern is one of: - 'glob:' - 're:' - 'path:' - 'relglob:' - 'relpath:' - 'relre:' - '' + 'glob:' - a glob relative to cwd + 're:' - a regular expression + 'path:' - a path relative to canonroot + 'relglob:' - an unrooted glob (*.c matches C files in all dirs) + 'relpath:' - a path relative to cwd + 'relre:' - a regexp that doesn't have to match the start of a name + '' - one of the cases above, selected by the dflt_pat argument returns: a 3-tuple containing - - list of explicit non-pattern names passed in + - list of roots (places where one should start a recursive walk of the fs); + this often matches the explicit non-pattern names passed in, but also + includes the initial part of glob: patterns that has no glob characters - a bool match(filename) function - a bool indicating if any patterns were passed in