mercurial/match.py
branchstable
changeset 25636 bfe9ed85f27c
parent 25194 ef4538ba67ef
child 25662 ff5172c83002
--- a/mercurial/match.py	Sat Jun 13 20:14:22 2015 +0900
+++ b/mercurial/match.py	Sat Jun 20 19:59:26 2015 -0400
@@ -407,6 +407,8 @@
     if kind == 're':
         return pat
     if kind == 'path':
+        if pat == '.':
+            return ''
         return '^' + util.re.escape(pat) + '(?:/|$)'
     if kind == 'relglob':
         return '(?:|.*/)' + _globre(pat) + globsuffix