Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/util.py @ 4233:03a665f9f913
util._matcher: use "." as the root of empty {rel,}path patterns
Should fix issue332. Really.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 16 Mar 2007 22:48:20 -0300 |
parents | ec932167c3a7 |
children | 34c4540c04c5 |
line wrap: on
line diff
--- a/mercurial/util.py +++ b/mercurial/util.py @@ -492,7 +492,7 @@ def _matcher(canonroot, cwd, names, inc, roots.append(root) elif kind in ('relpath', 'path'): files.append((kind, name)) - roots.append(name) + roots.append(name or '.') elif kind == 'relglob': roots.append('.') return roots, pats + files, anypats