Mercurial > public > mercurial-scm > hg-stable
diff mercurial/store.py @ 18430:0459c6555f69
store: implement lowerencode in C
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Wed, 12 Dec 2012 13:09:33 -0800 |
parents | b35e3364f94a |
children | 8c019d2fd7c0 |
line wrap: on
line diff
--- a/mercurial/store.py Tue Jan 15 22:34:56 2013 +0100 +++ b/mercurial/store.py Wed Dec 12 13:09:33 2012 -0800 @@ -132,7 +132,7 @@ cmap[chr(x)] = chr(x).lower() return lambda s: "".join([cmap[c] for c in s]) -lowerencode = _buildlowerencodefun() +lowerencode = getattr(parsers, 'lowerencode', None) or _buildlowerencodefun() # Windows reserved names: con, prn, aux, nul, com1..com9, lpt1..lpt9 _winres3 = ('aux', 'con', 'prn', 'nul') # length 3