Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
casecollisionauditor: ignore eden_dirstate_map
Summary: The default casecollisionauditor reads all of dirstate._map by iterating through it. This is expensive for a large repo and eden now raises RuntimeError for the iterator method. Please check D3964461 (73f0e3d) for more info. As Jun pointed out: * For non-edenfs we would always use treestate, therefore the original `if not dirstate._istreestate and not dirstate._istreedirstate:` check always evaluate to `False`. * For EdenFS, due to above reason, we should not go into the `then`-part of the if statement. So we can just delete the `then`-part of the if statement: ``` if not dirstate._istreestate and not dirstate._istreedirstate: allfiles = "\0".join(dirstate._map) self._loweredfiles = set(encoding.lower(allfiles).split("\0")) ``` Reviewed By: quark-zju Differential Revision: D42210487 fbshipit-source-id: 6c5d5daca9dd85deae6505344a4abad2cafb2831
- Loading branch information