Mercurial > hg
changeset 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 | 5cd14e1e8385 |
children | 3fb8c6dbeeec |
files | mercurial/util.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
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: