Mercurial > public > mercurial-scm > hg
diff mercurial/posix.py @ 15488:6eff984d8e76 stable
dirstate: fix case-folding identity for traditional Unix
We used to use os.path.normcase which was a no-op, which was unhelpful
for cases like VFAT on Linux.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Tue, 15 Nov 2011 14:25:11 -0600 |
parents | ab600a25dfc0 |
children | 58f96703a9ab |
line wrap: on
line diff
--- a/mercurial/posix.py Tue Nov 15 17:16:17 2011 +0100 +++ b/mercurial/posix.py Tue Nov 15 14:25:11 2011 -0600 @@ -164,6 +164,10 @@ st2 = os.lstat(fpath2) return st1.st_dev == st2.st_dev +# os.path.normcase is a no-op, which doesn't help us on non-native filesystems +def normcase(path): + return path.lower() + if sys.platform == 'darwin': import fcntl # only needed on darwin, missing on jython def realpath(path):