##// END OF EJS Templates
rust: Use the DisplayBytes trait in config printing...
rust: Use the DisplayBytes trait in config printing This is similar to `std::fmt::Display`, but for arbitrary bytes instead of Unicode. Writing to an abstract output stream helps avoid allocating intermediate `Vec<u8>` buffers. Differential Revision: https://phab.mercurial-scm.org/D9966

File last commit:

r47228:b1921234 default
r47249:eace48b4 default
Show More
commands.rs
15 lines | 361 B | application/rls-services+xml | RustLexer
Antoine Cezar
rhg: add a limited `rhg cat -r` subcommand...
r46113 pub mod cat;
Antoine Cezar
rhg: add a `DebugData` `Command` to prepare the `rhg debugdata` subcommand...
r46099 pub mod debugdata;
Simon Sapin
rhg: add a `debugrequirements` subcommand...
r46535 pub mod debugrequirements;
Antoine Cezar
rhg: add a `Files` `Command` to prepare the `rhg files` subcommand...
r45923 pub mod files;
Antoine Cezar
rhg: add RootCommand using hg-core FindRoot operation to prepare `hg root`...
r45592 pub mod root;
Antoine Cezar
rhg: add Command trait for subcommands implemented by rhg...
r45515 use crate::error::CommandError;
Antoine Cezar
rhg: pass `ui` to `Command` `run`...
r46009 use crate::ui::Ui;
Simon Sapin
rhg: Parse system and user configuration at program start...
r47213 use hg::config::Config;
Antoine Cezar
rhg: add Command trait for subcommands implemented by rhg...
r45515
/// The common trait for rhg commands
///
/// Normalize the interface of the commands provided by rhg
Antoine Cezar
rhg: pass `ui` to `Command` `run`...
r46009 pub trait Command {
Simon Sapin
rhg: Parse system and user configuration at program start...
r47213 fn run(&self, ui: &Ui, config: &Config) -> Result<(), CommandError>;
Antoine Cezar
rhg: add Command trait for subcommands implemented by rhg...
r45515 }