diff --git a/mercurial/windows.py b/mercurial/windows.py index 12c2207a39..8f9af1befb 100644 --- a/mercurial/windows.py +++ b/mercurial/windows.py @@ -232,7 +232,7 @@ def statfiles(files): try: dmap = dict([(normcase(n), s) for n, k, s in osutil.listdir(dir, True) - if getkind(s) in _wantedkinds]) + if getkind(s.st_mode) in _wantedkinds]) except OSError, err: # handle directory not found in Python version prior to 2.5 # Python <= 2.4 returns native Windows code 3 in errno