# HG changeset patch # User Matt Mackall # Date 1354834604 21600 # Node ID f0cfa27c712a770f39adcbe6aca7af322e1cc55e # Parent fe8caf28d580cedbcb1fe40cc5be0df7a8a5ed52 windows: correctly pass a mode to S_IFMT in statfiles diff -r fe8caf28d580 -r f0cfa27c712a mercurial/windows.py --- 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