##// END OF EJS Templates
chgserver: respect detailed exit code in case of ConfigError...
chgserver: respect detailed exit code in case of ConfigError This effectively backs out 60523483897cf8caf7718aaf81c58d4d9fd5e1fa which was a bandaid. Martin yesterday fixed a similar failure which motivated me to fix it the correct way.

File last commit:

r46751:dca9cb99 default
r46761:6383bb86 default
Show More
debugrequirements.rs
30 lines | 716 B | application/rls-services+xml | RustLexer
/ rust / rhg / src / commands / debugrequirements.rs
Simon Sapin
rhg: add a `debugrequirements` subcommand...
r46535 use crate::commands::Command;
Simon Sapin
requirements: move loading to hg-core and add parsing...
r46536 use crate::error::CommandError;
Simon Sapin
rhg: add a `debugrequirements` subcommand...
r46535 use crate::ui::Ui;
Simon Sapin
rust: replace most "operation" structs with functions...
r46751 use hg::operations::find_root;
Simon Sapin
requirements: move loading to hg-core and add parsing...
r46536 use hg::requirements;
Simon Sapin
rhg: add a `debugrequirements` subcommand...
r46535
pub const HELP_TEXT: &str = "
Print the current repo requirements.
";
pub struct DebugRequirementsCommand {}
impl DebugRequirementsCommand {
pub fn new() -> Self {
DebugRequirementsCommand {}
}
}
impl Command for DebugRequirementsCommand {
fn run(&self, ui: &Ui) -> Result<(), CommandError> {
Simon Sapin
rust: replace most "operation" structs with functions...
r46751 let root = find_root()?;
Simon Sapin
requirements: move loading to hg-core and add parsing...
r46536 let mut output = String::new();
for req in requirements::load(&root)? {
output.push_str(&req);
output.push('\n');
}
ui.write_stdout(output.as_bytes())?;
Simon Sapin
rhg: add a `debugrequirements` subcommand...
r46535 Ok(())
}
}