# HG changeset patch # User Arseniy Alekseyev # Date 1633446560 -3600 # Node ID 08c8cd2527bcfb6e021aec6a5b66285cc72c44d5 # Parent 64b8676f11bb472a8dd93f9cd1b7a94e90231e42 rhg: in rhg cat cli, fix the long name of the --rev flag Also tweak the help for the anonymous argument. Differential Revision: https://phab.mercurial-scm.org/D11617 diff -r 64b8676f11bb -r 08c8cd2527bc rust/rhg/src/commands/cat.rs --- a/rust/rhg/src/commands/cat.rs Thu Jun 24 14:23:11 2021 +0530 +++ b/rust/rhg/src/commands/cat.rs Tue Oct 05 16:09:20 2021 +0100 @@ -16,7 +16,7 @@ Arg::with_name("rev") .help("search the repository as it is in REV") .short("-r") - .long("--revision") + .long("--rev") .value_name("REV") .takes_value(true), ) @@ -26,7 +26,7 @@ .multiple(true) .empty_values(false) .value_name("FILE") - .help("Activity to start: activity@category"), + .help("Files to output"), ) .about(HELP_TEXT) } diff -r 64b8676f11bb -r 08c8cd2527bc tests/test-rhg.t --- a/tests/test-rhg.t Thu Jun 24 14:23:11 2021 +0530 +++ b/tests/test-rhg.t Tue Oct 05 16:09:20 2021 +0100 @@ -121,6 +121,8 @@ file-3 $ $NO_FALLBACK rhg cat -r cf8b83 file-2 2 + $ $NO_FALLBACK rhg cat --rev cf8b83 file-2 + 2 $ $NO_FALLBACK rhg cat -r c file-2 abort: ambiguous revision identifier: c [255]