Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util.py @ 9397:5b117c90f036
util: quicker fspath, do not lower names when the length is different
author | Simon Heimberg <simohe@besonet.ch> |
---|---|
date | Wed, 29 Jul 2009 14:21:18 +0200 |
parents | eae98607b349 |
children | 4c3fb45123e5 |
line wrap: on
line diff
--- a/mercurial/util.py Fri Aug 07 15:40:51 2009 +0200 +++ b/mercurial/util.py Wed Jul 29 14:21:18 2009 +0200 @@ -661,8 +661,9 @@ contents = _fspathcache[dir] lpart = part.lower() + lenp = len(part) for n in contents: - if n.lower() == lpart: + if lenp == len(n) and n.lower() == lpart: result.append(n) break else: