Patchwork [6,of,6,foldmap-in-C] windows: define normcase ASCII spec and fallback

login
register
mail settings
Submitter Siddharth Agarwal
Date April 2, 2015, 2:48 a.m.
Message ID <bfc450d04c19194d84ee.1427942891@devbig136.prn2.facebook.com>
Download mbox | patch
Permalink /patch/8439/
State Rejected
Headers show

Comments

Siddharth Agarwal - April 2, 2015, 2:48 a.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@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.

Patch

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