Series of three patches improving mercurial performance on case folding systems. The first patch is a severe performance regression reported as 1286 The second and third patch are both perfomance tweaks.