[PATCH 6 of 6 foldmap-in-C] windows: define normcase ASCII spec and fallback
Siddharth Agarwal
sid0 at fb.com
Wed Apr 1 21:48:11 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 bfc450d04c19194d84ee837c337bee6cdfd999a6
# Parent 88ddff56632adc32943a5b8d82c666536b9395d9
windows: define normcase ASCII 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
+normcaseasciispec = encoding.normcaseasciispecs.upper
+normcasefallback = encoding.upperfallback
+
def samestat(s1, s2):
return False
More information about the Mercurial-devel
mailing list