# HG changeset patch # User Siddharth Agarwal # Date 1427873362 25200 # Node ID 75ea27f1711d61710915e2fd4ef35f88677c32b6 # Parent 136ab89d61cb1b0474fdef6599deab65f53f1b20 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'. diff -r 136ab89d61cb -r 75ea27f1711d 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.