mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 16:31:02 +03:00
1e288e8ea4
Summary: Now that fsnodes is async, convert more functions to use references, and tidy up imports and type names. Reviewed By: krallin Differential Revision: D24726145 fbshipit-source-id: 75a619777f19754daf494a3743d26fa2e77aef54
31 lines
764 B
Rust
31 lines
764 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::{ContentId, FsnodeId};
|
|
use thiserror::Error;
|
|
|
|
mod batch;
|
|
mod derive;
|
|
mod mapping;
|
|
|
|
pub use derive::prefetch_content_metadata;
|
|
pub use mapping::{RootFsnodeId, RootFsnodeMapping};
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum FsnodeDerivationError {
|
|
#[error("Invalid bonsai changeset: {0}")]
|
|
InvalidBonsai(String),
|
|
#[error("Missing content: {0}")]
|
|
MissingContent(ContentId),
|
|
#[error("Missing fsnode parent: {0}")]
|
|
MissingParent(FsnodeId),
|
|
#[error("Missing fsnode subentry for '{0}': {1}")]
|
|
MissingSubentry(String, FsnodeId),
|
|
}
|