Mercurial > hg
changeset 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 | 591767e6ea7a |
children | 972737252d05 |
files | mercurial/osutil.py mercurial/util.py |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/osutil.py Sat Nov 01 13:07:24 2008 +0100 +++ b/mercurial/osutil.py Sat Nov 01 15:15:14 2008 +0300 @@ -26,7 +26,9 @@ (name, type) ''' result = [] - prefix = path + os.sep + prefix = path + if not prefix.endswith(os.sep): + prefix += os.sep names = os.listdir(path) names.sort() for fn in names: