Mercurial > public > mercurial-scm > hg
diff rust/rhg/src/main.rs @ 45923:ead435aa5294
rhg: add a `debugrequirements` subcommand
For now it only prints the contents of `.hg/requires` as-is, without parsing.
Differential Revision: https://phab.mercurial-scm.org/D9397
author | Simon Sapin <simon-commits@exyr.org> |
---|---|
date | Tue, 24 Nov 2020 15:11:58 +0100 |
parents | 33ded2d3f4fc |
children | ca3f73cc3cf4 |
line wrap: on
line diff
--- a/rust/rhg/src/main.rs Wed Nov 25 11:08:28 2020 -0500 +++ b/rust/rhg/src/main.rs Tue Nov 24 15:11:58 2020 +0100 @@ -83,6 +83,10 @@ .required(true) .value_name("REV"), ), + ) + .subcommand( + SubCommand::with_name("debugrequirements") + .about(commands::debugrequirements::HELP_TEXT), ); let matches = app.clone().get_matches_safe().unwrap_or_else(|err| { @@ -124,6 +128,10 @@ ("debugdata", Some(matches)) => { commands::debugdata::DebugDataCommand::try_from(matches)?.run(&ui) } + ("debugrequirements", _) => { + commands::debugrequirements::DebugRequirementsCommand::new() + .run(&ui) + } _ => unreachable!(), // Because of AppSettings::SubcommandRequired, } }