[PATCH 3 of 3] Add a normalize() method to dirstate

Paul Moore p.f.moore at gmail.com
Sat May 24 18:13:30 UTC 2008


2008/5/24 Paul Moore <p.f.moore at gmail.com>:
> 2008/5/24 Paul Moore <p.f.moore at gmail.com>:
>> I'll fix this.
>
> How about this version? It saves us the one-off cost of preloading
> _foldmap from _map, as well as the (minor) memory cost of having
> essentially 2 copies of _map.

Doh. Ignore that - I've no guarantee that the keys of _map are in
normcase/normpath form, so this is completely broken. I'll stick with
a preloaded _foldmap, as you described.

Paul.



More information about the Mercurial-devel mailing list