Mercurial > hg
comparison mercurial/util.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 | 2db33c1a5654 |
children | 5751631246de 526c40a74bd0 |
comparison
equal
deleted
inserted
replaced
7300:591767e6ea7a | 7301:00d76fa3ffba |
---|---|
854 nf = ncase(nf) | 854 nf = ncase(nf) |
855 pos = nf.rfind(sep) | 855 pos = nf.rfind(sep) |
856 if pos == -1: | 856 if pos == -1: |
857 dir, base = '.', nf | 857 dir, base = '.', nf |
858 else: | 858 else: |
859 dir, base = nf[:pos], nf[pos+1:] | 859 dir, base = nf[:pos+1], nf[pos+1:] |
860 cache = dircache.get(dir, None) | 860 cache = dircache.get(dir, None) |
861 if cache is None: | 861 if cache is None: |
862 try: | 862 try: |
863 dmap = dict([(ncase(n), s) | 863 dmap = dict([(ncase(n), s) |
864 for n, k, s in osutil.listdir(dir, True)]) | 864 for n, k, s in osutil.listdir(dir, True)]) |