# HG changeset patch # User Simon Sapin # Date 2021-03-08 19:04:20 # Node ID eb14264b98e8dcdc3bd259a5aa5fa3cd934d46e7 # Parent 63bfcddddac1d6f361ca012e31a6005793c714c6 rhg: Fall back to Python for --version Clap has some built-in support for printing something on --version, but it looks different than what Pytho-based hg does. Also, at the moment we’re not giving version numbers to rhg separate from the Mercurial version. Differential Revision: https://phab.mercurial-scm.org/D10144 diff --git a/rust/rhg/src/main.rs b/rust/rhg/src/main.rs --- a/rust/rhg/src/main.rs +++ b/rust/rhg/src/main.rs @@ -29,6 +29,7 @@ fn main_with_result( let app = App::new("rhg") .global_setting(AppSettings::AllowInvalidUtf8) + .global_setting(AppSettings::DisableVersion) .setting(AppSettings::SubcommandRequired) .setting(AppSettings::VersionlessSubcommands) .arg(