posix: define normcase spec and fallback
These will be used in upcoming patches to efficiently create a dirstate
foldmap.
--- a/mercurial/posix.py Wed Apr 01 00:21:10 2015 -0700
+++ b/mercurial/posix.py Wed Apr 01 00:26:07 2015 -0700
@@ -200,6 +200,11 @@
def normcase(path):
return path.lower()
+# what normcase does to ASCII strings
+normcasespec = encoding.normcasespecs.lower
+# fallback normcase function for non-ASCII strings
+normcasefallback = normcase
+
if sys.platform == 'darwin':
def normcase(path):