[PATCH 6 of 6 foldmap-in-C V2] windows: define normcase spec and fallback
Siddharth Agarwal
sid0 at fb.com
Thu Apr 2 17:51:55 CDT 2015
# HG changeset patch
# User Siddharth Agarwal <sid0 at fb.com>
# Date 1427873501 25200
# Wed Apr 01 00:31:41 2015 -0700
# Node ID 740c49251044cc966f39c39410b3c109eb37c4c6
# Parent e8023e64800c8a009eac62cfc37cc7d39484b282
windows: define normcase spec and fallback
These will be used in upcoming patches to efficiently create a dirstate
foldmap.
diff --git a/mercurial/windows.py b/mercurial/windows.py
--- a/mercurial/windows.py
+++ b/mercurial/windows.py
@@ -141,6 +141,10 @@ def normpath(path):
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
More information about the Mercurial-devel
mailing list