comparison 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
comparison
equal deleted inserted replaced
24607:f5b527024fcc 24608:1c533e23ce95
362 This is specified per platform, and should be consistent with what normcase 362 This is specified per platform, and should be consistent with what normcase
363 on that platform actually does. 363 on that platform actually does.
364 364
365 lower: normcase lowercases ASCII strings 365 lower: normcase lowercases ASCII strings
366 upper: normcase uppercases ASCII strings 366 upper: normcase uppercases ASCII strings
367 other: the fallback function should always be called''' 367 other: the fallback function should always be called
368
369 This should be kept in sync with normcase_spec in util.h.'''
368 lower = -1 370 lower = -1
369 upper = 1 371 upper = 1
370 other = 0 372 other = 0
371 373
372 _jsonmap = {} 374 _jsonmap = {}