diff mercurial/encoding.py @ 24608:1c533e23ce95

util.h: define an enum for normcase specs These will be used in upcoming patches to efficiently create a dirstate foldmap.
author Siddharth Agarwal <sid0@fb.com>
date Thu, 02 Apr 2015 19:17:32 -0700
parents b4258d5a1600
children 328739ea70c3
line wrap: on
line diff
--- a/mercurial/encoding.py	Thu Apr 02 19:13:50 2015 -0700
+++ b/mercurial/encoding.py	Thu Apr 02 19:17:32 2015 -0700
@@ -364,7 +364,9 @@
 
     lower: normcase lowercases ASCII strings
     upper: normcase uppercases ASCII strings
-    other: the fallback function should always be called'''
+    other: the fallback function should always be called
+
+    This should be kept in sync with normcase_spec in util.h.'''
     lower = -1
     upper = 1
     other = 0