Mercurial > public > mercurial-scm > hg
diff mercurial/match.py @ 25662:ff5172c83002
merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 24 Jun 2015 13:41:27 -0500 |
parents | 328739ea70c3 bfe9ed85f27c |
children | 3de48ff62733 |
line wrap: on
line diff
--- 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