cygwin: define normcase spec and fallback
authorSiddharth Agarwal <sid0@fb.com>
Wed, 01 Apr 2015 00:29:22 -0700
changeset 24596 75ea27f1711d
parent 24595 136ab89d61cb
child 24597 b4258d5a1600
cygwin: define normcase spec and fallback These will be used in upcoming patches to efficiently create a dirstate foldmap. The Cygwin normcase behavior is more complicated than just a simple lowercasing or uppercasing. That's why we specify 'other'.
mercurial/posix.py
--- a/mercurial/posix.py	Tue Mar 31 23:30:19 2015 -0700
+++ b/mercurial/posix.py	Wed Apr 01 00:29:22 2015 -0700
@@ -311,6 +311,9 @@
 
         return encoding.upper(path)
 
+    normcasespec = encoding.normcasespecs.other
+    normcasefallback = normcase
+
     # Cygwin translates native ACLs to POSIX permissions,
     # but these translations are not supported by native
     # tools, so the exec bit tends to be set erroneously.