Show More
@@ -469,7 +469,7 b' def _matcher(canonroot, cwd, names, inc,' | |||||
469 | for p in pat.split('/'): |
|
469 | for p in pat.split('/'): | |
470 | if contains_glob(p): break |
|
470 | if contains_glob(p): break | |
471 | root.append(p) |
|
471 | root.append(p) | |
472 | return '/'.join(root) |
|
472 | return '/'.join(root) or '.' | |
473 |
|
473 | |||
474 | pats = [] |
|
474 | pats = [] | |
475 | files = [] |
|
475 | files = [] | |
@@ -483,7 +483,7 b' def _matcher(canonroot, cwd, names, inc,' | |||||
483 | pats.append((kind, name)) |
|
483 | pats.append((kind, name)) | |
484 | if kind == 'glob': |
|
484 | if kind == 'glob': | |
485 | root = globprefix(name) |
|
485 | root = globprefix(name) | |
486 |
|
|
486 | roots.append(root) | |
487 | elif kind == 'relpath': |
|
487 | elif kind == 'relpath': | |
488 | files.append((kind, name)) |
|
488 | files.append((kind, name)) | |
489 | roots.append(name) |
|
489 | roots.append(name) |
@@ -49,6 +49,8 b' hg debugwalk glob:\\*' | |||||
49 | hg debugwalk 're:.*[kb]$' |
|
49 | hg debugwalk 're:.*[kb]$' | |
50 | hg debugwalk path:beans/black |
|
50 | hg debugwalk path:beans/black | |
51 | hg debugwalk beans 'glob:beans/*' |
|
51 | hg debugwalk beans 'glob:beans/*' | |
|
52 | hg debugwalk 'glob:mamm**' | |||
|
53 | hg debugwalk 'glob:mamm**' fennel | |||
52 | hg debugwalk 'glob:j*' |
|
54 | hg debugwalk 'glob:j*' | |
53 | hg debugwalk NOEXIST |
|
55 | hg debugwalk NOEXIST | |
54 | mkfifo fifo |
|
56 | mkfifo fifo |
@@ -90,6 +90,15 b' f beans/kidney beans/kidney' | |||||
90 | f beans/navy beans/navy |
|
90 | f beans/navy beans/navy | |
91 | f beans/pinto beans/pinto |
|
91 | f beans/pinto beans/pinto | |
92 | f beans/turtle beans/turtle |
|
92 | f beans/turtle beans/turtle | |
|
93 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | |||
|
94 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | |||
|
95 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | |||
|
96 | f mammals/skunk mammals/skunk | |||
|
97 | f fennel fennel exact | |||
|
98 | f mammals/Procyonidae/cacomistle mammals/Procyonidae/cacomistle | |||
|
99 | f mammals/Procyonidae/coatimundi mammals/Procyonidae/coatimundi | |||
|
100 | f mammals/Procyonidae/raccoon mammals/Procyonidae/raccoon | |||
|
101 | f mammals/skunk mammals/skunk | |||
93 | NOEXIST: No such file or directory |
|
102 | NOEXIST: No such file or directory | |
94 | fifo: unsupported file type (type is fifo) |
|
103 | fifo: unsupported file type (type is fifo) | |
95 | m fenugreek fenugreek exact |
|
104 | m fenugreek fenugreek exact |
General Comments 0
You need to be logged in to leave comments.
Login now