view rust/hg-core/src/operations/mod.rs @ 46167:8a4914397d02

rust: introduce Repo and Vfs types for filesystem abstraction This is similar to the corresponding Python classes. Repo represents a repository and knows the path to the `.hg` directory, the `store` directory, and the working directory. Separating these will enable supporting the share extension. A Vfs is created from a Repo for one of these three directories. It has filesystem access APIs that take a relative std::path::Path as a parameter. Differential Revision: https://phab.mercurial-scm.org/D9596
author Simon Sapin <simon.sapin@octobus.net>
date Mon, 14 Dec 2020 16:33:15 +0100
parents dca9cb99971c
children 3e2d539d0d1a
line wrap: on
line source

//! A distinction is made between operations and commands.
//! An operation is what can be done whereas a command is what is exposed by
//! the cli. A single command can use several operations to achieve its goal.

mod cat;
mod debugdata;
mod dirstate_status;
mod find_root;
mod list_tracked_files;
pub use cat::{cat, CatRevError, CatRevErrorKind};
pub use debugdata::{
    debug_data, DebugDataError, DebugDataErrorKind, DebugDataKind,
};
pub use find_root::{
    find_root, find_root_from_path, FindRootError, FindRootErrorKind,
};
pub use list_tracked_files::{
    list_rev_tracked_files, FilesForRev, ListRevTrackedFilesError,
    ListRevTrackedFilesErrorKind,
};
pub use list_tracked_files::{
    Dirstate, ListDirstateTrackedFilesError, ListDirstateTrackedFilesErrorKind,
};