##// END OF EJS Templates
hg-core: add Operation interface for high-level hg operations...
Antoine Cezar -
r45501:a46e36b8 default
parent child Browse files
Show More
@@ -0,0 +1,9 b''
1 /// An interface for high-level hg operations.
2 ///
3 /// A distinction is made between operation and commands.
4 /// An operation is what can be done whereas a command is what is exposed by
5 /// the cli. A single command can use several operations to achieve its goal.
6 pub trait Operation<T> {
7 type Error;
8 fn run(&self) -> Result<T, Self::Error>;
9 }
@@ -23,6 +23,7 b' mod filepatterns;'
23 pub mod matchers;
23 pub mod matchers;
24 pub mod revlog;
24 pub mod revlog;
25 pub use revlog::*;
25 pub use revlog::*;
26 pub mod operations;
26 pub mod utils;
27 pub mod utils;
27
28
28 // Remove this to see (potential) non-artificial compile failures. MacOS
29 // Remove this to see (potential) non-artificial compile failures. MacOS
General Comments 0
You need to be logged in to leave comments. Login now