##// 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
Raphaël Gomès
hg-core: define a `dirstate_status` `Operation`...
r45673 mod dirstate_status;
Antoine Cezar
hg-core: add FindRoot operation to find repository root path...
r45502 mod find_root;
pub use find_root::{FindRoot, FindRootError, FindRootErrorKind};
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>;
}