##// END OF EJS Templates
hg-core: add Operation interface for high-level hg operations...
hg-core: add Operation interface for high-level hg operations A distinction is made between operations and commands. An operation is a high-level function of mercurial whereas a command is what is exposed by the cli. A single command can use several operations to achieve its goal. Differential Revision: https://phab.mercurial-scm.org/D8608

File last commit:

r45501:a46e36b8 default
r45501:a46e36b8 default
Show More
mod.rs
9 lines | 352 B | application/rls-services+xml | RustLexer
Antoine Cezar
hg-core: add Operation interface for high-level hg operations...
r45501 /// 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>;
}