mercurial/util.py
changeset 4233 03a665f9f913
parent 4194 ec932167c3a7
child 4236 34c4540c04c5
--- 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