mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
4db876a1bb
Summary: When I refactored MPath to limit path length to 255 throughout, I had to change the logic in this hook because it couldn't represent problematic paths anymore. Unfortunately, I didn't realize that this would break in cases where the file fits in 254 or 255 characters with one of the less compact encodings (but that doesn't fit in 255 if you add `.i`), but also fits in 255 characters once you add `.i` using one of the more compact encodings. This results in the hook rejecting things that could have been represented in a more compact encoding un-necessarily. This fixes that, but to do so it also requires no requiring MPath in fsencode (and instead allowing any slice of bytes) which is basically the bulk of changes here. Reviewed By: StanislavGlebik Differential Revision: D21462205 fbshipit-source-id: d4fe6129b379675e842bff5b20bd776cb39157b2 |
||
---|---|---|
.. | ||
manifest | ||
revlog | ||
Cargo.toml | ||
errors.rs | ||
lib.rs | ||
revlogrepo.rs | ||
stockbookmarks.rs |