changeset 24594:609aa973c01d

posix: define normcase spec and fallback These will be used in upcoming patches to efficiently create a dirstate foldmap.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 01 Apr 2015 00:26:07 -0700
parents f473a1fe5c7c
children 136ab89d61cb
files mercurial/posix.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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):