author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
Sat, 24 Dec 2011 00:51:14 +0900 | |
changeset 15719 | 1dd60426b061 |
parent 15718 | c604a3d1969d |
child 15720 | 3bcfea777efc |
mercurial/util.py | file | annotate | diff | comparison | revisions |
--- a/mercurial/util.py Sat Dec 24 00:50:56 2011 +0900 +++ b/mercurial/util.py Sat Dec 24 00:51:14 2011 +0900 @@ -640,10 +640,9 @@ result.append(sep) continue - contents = _fspathcache.get(dir, None) - if contents is None: - contents = os.listdir(dir) - _fspathcache[dir] = contents + if dir not in _fspathcache: + _fspathcache[dir] = os.listdir(dir) + contents = _fspathcache[dir] found = find(part, contents) if not found: