Mercurial > hg
comparison mercurial/windows.py @ 18041:f0cfa27c712a
windows: correctly pass a mode to S_IFMT in statfiles
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Thu, 06 Dec 2012 16:56:44 -0600 |
parents | 74912fe3d718 |
children | 242d2f4ec01c |
comparison
equal
deleted
inserted
replaced
18040:fe8caf28d580 | 18041:f0cfa27c712a |
---|---|
230 cache = dircache.get(dir, None) | 230 cache = dircache.get(dir, None) |
231 if cache is None: | 231 if cache is None: |
232 try: | 232 try: |
233 dmap = dict([(normcase(n), s) | 233 dmap = dict([(normcase(n), s) |
234 for n, k, s in osutil.listdir(dir, True) | 234 for n, k, s in osutil.listdir(dir, True) |
235 if getkind(s) in _wantedkinds]) | 235 if getkind(s.st_mode) in _wantedkinds]) |
236 except OSError, err: | 236 except OSError, err: |
237 # handle directory not found in Python version prior to 2.5 | 237 # handle directory not found in Python version prior to 2.5 |
238 # Python <= 2.4 returns native Windows code 3 in errno | 238 # Python <= 2.4 returns native Windows code 3 in errno |
239 # Python >= 2.5 returns ENOENT and adds winerror field | 239 # Python >= 2.5 returns ENOENT and adds winerror field |
240 # EINVAL is raised if dir is not a directory. | 240 # EINVAL is raised if dir is not a directory. |