mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
923c6c6b52
Summary: First, some background on the existing WrappedPath type: In Mononoke the MPath type is such that None==Root and Some(MPath)==NonRoot. This means that where a path may be present one needs to use double-Option with Option<Option<MPath>>, so that Root is Some(None). To reduce the need for double Option, and subsequently to allow for newtype features like memoization, the walker has WrappedPath, so we can use Option<WrappedPath> instead. This change introduces a similar type WrappedPathHash for MPathHash, which means that the sample_fingerprint for WrappedPath can be now be non-optional as even root paths/manifests can now have a sample_fingerprint. Reviewed By: mitrandir77 Differential Revision: D27995143 fbshipit-source-id: b674abd4ec94749f4f5797c697ae7381e1a08d02 |
||
---|---|---|
.. | ||
schemas | ||
src | ||
Cargo.toml |