changeset 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 fe8caf28d580
children 551e2901192e
files mercurial/windows.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/windows.py	Wed Dec 05 14:33:15 2012 -0800
+++ b/mercurial/windows.py	Thu Dec 06 16:56:44 2012 -0600
@@ -232,7 +232,7 @@
             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