comparison mercurial/osutil.py @ 7301:00d76fa3ffba

Fix util._statfiles_clustered() failing at root of a windows drive Report and initial fix by Andrei Vermel <avermel@mail.ru>.
author Patrick Mezard <pmezard@gmail.com>
date Sat, 01 Nov 2008 15:15:14 +0300
parents 094af6eeb7d7
children
comparison
equal deleted inserted replaced
7300:591767e6ea7a 7301:00d76fa3ffba
24 Otherwise, each element is a 2-tuple: 24 Otherwise, each element is a 2-tuple:
25 25
26 (name, type) 26 (name, type)
27 ''' 27 '''
28 result = [] 28 result = []
29 prefix = path + os.sep 29 prefix = path
30 if not prefix.endswith(os.sep):
31 prefix += os.sep
30 names = os.listdir(path) 32 names = os.listdir(path)
31 names.sort() 33 names.sort()
32 for fn in names: 34 for fn in names:
33 st = os.lstat(prefix + fn) 35 st = os.lstat(prefix + fn)
34 if fn == skip and _stat.S_ISDIR(st.st_mode): 36 if fn == skip and _stat.S_ISDIR(st.st_mode):