mercurial/match.py
changeset 25662 ff5172c83002
parent 25660 328739ea70c3
parent 25636 bfe9ed85f27c
child 25870 3de48ff62733
--- a/mercurial/match.py	Tue Jun 23 22:20:01 2015 -0700
+++ b/mercurial/match.py	Wed Jun 24 13:41:27 2015 -0500
@@ -505,6 +505,8 @@
     if kind == 're':
         return pat
     if kind == 'path':
+        if pat == '.':
+            return ''
         return '^' + util.re.escape(pat) + '(?:/|$)'
     if kind == 'relglob':
         return '(?:|.*/)' + _globre(pat) + globsuffix