windows: define normcase spec and fallback
authorSiddharth Agarwal <sid0@fb.com>
Wed, 01 Apr 2015 00:31:41 -0700
changeset 24598 22f49c7dd11b
parent 24597 b4258d5a1600
child 24599 2a73829ebe17
windows: define normcase spec and fallback These will be used in upcoming patches to efficiently create a dirstate foldmap.
mercurial/windows.py
--- a/mercurial/windows.py	Wed Apr 01 00:30:41 2015 -0700
+++ b/mercurial/windows.py	Wed Apr 01 00:31:41 2015 -0700
@@ -141,6 +141,10 @@
 def normcase(path):
     return encoding.upper(path)
 
+# see posix.py for definitions
+normcasespec = encoding.normcasespecs.upper
+normcasefallback = encoding.upperfallback
+
 def samestat(s1, s2):
     return False