##// END OF EJS Templates
commit: pass mergestate into _filecommit() instead of re-reading it...
commit: pass mergestate into _filecommit() instead of re-reading it mergestate reading although cheap is not free. Let's read mergestate once on top and pass it into `_filecommit()`. In upcoming patches, we will be reading mergestate more in `_filecommit()`. Differential Revision: https://phab.mercurial-scm.org/D8984

File last commit:

r46009:ed95ccc9 default
r46014:037e88d4 default
Show More
commands.rs
11 lines | 261 B | application/rls-services+xml | RustLexer
pub mod files;
pub mod root;
use crate::error::CommandError;
use crate::ui::Ui;
/// The common trait for rhg commands
///
/// Normalize the interface of the commands provided by rhg
pub trait Command {
fn run(&self, ui: &Ui) -> Result<(), CommandError>;
}