sapling/eden/mononoke/walker
Alex Hornby 923c6c6b52 mononoke: introduce WrappedPathHash to walker
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
2021-04-27 06:00:02 -07:00
..
schemas mononoke: record checkpoint update stats and finish time 2021-03-12 10:46:40 -08:00
src mononoke: introduce WrappedPathHash to walker 2021-04-27 06:00:02 -07:00
Cargo.toml rust: update to zstd to 0.7.0+zstd.1.4.9 2021-04-22 14:34:06 -07:00