Patchwork [1,of,6,foldmap-in-C] util: add normcase spec and fallback

login
register
mail settings
Submitter Siddharth Agarwal
Date April 3, 2015, 4:02 a.m.
Message ID <a0f05ad01122ba8cd365.1428033734@devbig136.prn2.facebook.com>
Download mbox | patch
Permalink /patch/8471/
State Accepted
Commit 98744856b7d3f0831ac4fe91c3c5fceb7edfdcf8
Headers show

Comments

Siddharth Agarwal - April 3, 2015, 4:02 a.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1427873936 25200
#      Wed Apr 01 00:38:56 2015 -0700
# Node ID a0f05ad01122ba8cd3653af01f4dfd13a839dc02
# Parent  740c49251044cc966f39c39410b3c109eb37c4c6
util: add normcase spec and fallback

These will be used in upcoming patches to efficiently create a dirstate
foldmap.

Patch

diff --git a/mercurial/util.py b/mercurial/util.py
--- a/mercurial/util.py
+++ b/mercurial/util.py
@@ -48,6 +48,8 @@  makedir = platform.makedir
 nlinks = platform.nlinks
 normpath = platform.normpath
 normcase = platform.normcase
+normcasespec = platform.normcasespec
+normcasefallback = platform.normcasefallback
 openhardlinks = platform.openhardlinks
 oslink = platform.oslink
 parsepatchoutput = platform.parsepatchoutput