##// END OF EJS Templates
repository: introduce constant for internal phase repo requirement and use it...
repository: introduce constant for internal phase repo requirement and use it In future we will like to much cleaner logic around which requirement is for working copy and which can go in store. To start with that, we first need to de-clutter the requirement values spread around and replace them with constants. Differential Revision: https://phab.mercurial-scm.org/D8912

File last commit:

r45673:98817e5d default
r45915:f025b97f default
Show More
mod.rs
13 lines | 454 B | application/rls-services+xml | RustLexer
mod dirstate_status;
mod find_root;
pub use find_root::{FindRoot, FindRootError, FindRootErrorKind};
/// An interface for high-level hg operations.
///
/// A distinction is made between operation 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.
pub trait Operation<T> {
type Error;
fn run(&self) -> Result<T, Self::Error>;
}