diff --git a/rust/hg-core/src/operations/list_tracked_files.rs b/rust/hg-core/src/operations/list_tracked_files.rs new file mode 100644 --- /dev/null +++ b/rust/hg-core/src/operations/list_tracked_files.rs @@ -0,0 +1,34 @@ +use super::Operation; +use crate::utils::hg_path::HgPathBuf; +use std::fmt; + +/// Kind of error encoutered by ListTrackedFiles +#[derive(Debug)] +pub enum ListTrackedFilesErrorKind {} + +/// A ListTrackedFiles error +#[derive(Debug)] +pub struct ListTrackedFilesError { + /// Kind of error encoutered by ListTrackedFiles + pub kind: ListTrackedFilesErrorKind, +} + +impl std::error::Error for ListTrackedFilesError {} + +impl fmt::Display for ListTrackedFilesError { + fn fmt(&self, _f: &mut fmt::Formatter<'_>) -> fmt::Result { + unimplemented!() + } +} + +/// List files under Mercurial control in the working directory +/// by reading the dirstate at .hg/dirstate +pub struct ListTrackedFiles {} + +impl Operation> for ListTrackedFiles { + type Error = ListTrackedFilesError; + + fn run(&self) -> Result, Self::Error> { + unimplemented!() + } +} diff --git a/rust/hg-core/src/operations/mod.rs b/rust/hg-core/src/operations/mod.rs --- a/rust/hg-core/src/operations/mod.rs +++ b/rust/hg-core/src/operations/mod.rs @@ -1,4 +1,5 @@ mod find_root; +mod list_tracked_files; pub use find_root::{FindRoot, FindRootError, FindRootErrorKind}; /// An interface for high-level hg operations.