Show More
@@ -397,19 +397,23 b' def _matcher(canonroot, cwd, names, inc,' | |||
|
397 | 397 | inc - patterns to include |
|
398 | 398 | exc - patterns to exclude |
|
399 | 399 | head - a regex to prepend to patterns to control whether a match is rooted |
|
400 | dflt_pat - if a pattern in names has no explicit type, assume this one | |
|
401 | src - where these patterns came from (e.g. .hgignore) | |
|
400 | 402 | |
|
401 | 403 | a pattern is one of: |
|
402 | 'glob:<rooted glob>' | |
|
403 | 're:<rooted regexp>' | |
|
404 | 'path:<rooted path>' | |
|
405 | 'relglob:<relative glob>' | |
|
406 |
'relpath:<relative |
|
|
407 | 'relre:<relative regexp>' | |
|
408 | '<rooted path or regexp>' | |
|
404 | 'glob:<glob>' - a glob relative to cwd | |
|
405 | 're:<regexp>' - a regular expression | |
|
406 | 'path:<path>' - a path relative to canonroot | |
|
407 | 'relglob:<glob>' - an unrooted glob (*.c matches C files in all dirs) | |
|
408 | 'relpath:<path>' - a path relative to cwd | |
|
409 | 'relre:<regexp>' - a regexp that doesn't have to match the start of a name | |
|
410 | '<something>' - one of the cases above, selected by the dflt_pat argument | |
|
409 | 411 | |
|
410 | 412 | returns: |
|
411 | 413 | a 3-tuple containing |
|
412 | - list of explicit non-pattern names passed in | |
|
414 | - list of roots (places where one should start a recursive walk of the fs); | |
|
415 | this often matches the explicit non-pattern names passed in, but also | |
|
416 | includes the initial part of glob: patterns that has no glob characters | |
|
413 | 417 | - a bool match(filename) function |
|
414 | 418 | - a bool indicating if any patterns were passed in |
|
415 | 419 |
General Comments 0
You need to be logged in to leave comments.
Login now