sapling/eden/mononoke/derived_data/skeleton_manifest/lib.rs
Mark Juggurnauth-Thomas 509dcf3ccd skeleton_manifests: enable derivation of skeleton manifests in batches
Summary:
Similar to fsnodes, allow skeleton manifests to be derived in parallel in large
batches by splitting the changesets into linear stacks with no internal
conflicts, and deriving each changeset in that batch in parallel.

Reviewed By: StanislavGlebik

Differential Revision: D25218196

fbshipit-source-id: e578de9ffd472e732abb1e2ef9cd19c073280cd4
2020-12-02 07:33:41 -08:00

28 lines
722 B
Rust

/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This software may be used and distributed according to the terms of the
* GNU General Public License version 2.
*/
#![deny(warnings)]
use mononoke_types::SkeletonManifestId;
use thiserror::Error;
mod batch;
mod derive;
mod mapping;
pub use mapping::{RootSkeletonManifestId, RootSkeletonManifestMapping};
#[derive(Debug, Error)]
pub enum SkeletonManifestDerivationError {
#[error("Invalid bonsai changeset: {0}")]
InvalidBonsai(String),
#[error("Missing skeleton manifest parent: {0}")]
MissingParent(SkeletonManifestId),
#[error("Missing skeleton manifest subentry for '{0}': {1}")]
MissingSubentry(String, SkeletonManifestId),
}