Mercurial > public > mercurial-scm > hg-stable
diff 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 |
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