##// END OF EJS Templates
rhg: add rhg crate...
rhg: add rhg crate The goal of rhg is to speedup some of hg's commands when possible by bypassing python entirely for the time being. It is by no means a replacement for hg as it will not support extentions or configuration and implement only a subset of hg's commands and options. Only use rhg if you understand what the tradeoffs are. Differential Revision: https://phab.mercurial-scm.org/D8610

File last commit:

r45502:5965efb6 default
r45503:cf04f62d default
Show More
mod.rs
12 lines | 433 B | application/rls-services+xml | RustLexer
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>;
}