mercurial/store.py
changeset 18430 0459c6555f69
parent 18054 b35e3364f94a
child 18435 8c019d2fd7c0
--- 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