Mercurial > hg
changeset 48172:08c8cd2527bc
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
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Tue, 05 Oct 2021 16:09:20 +0100 |
parents | 64b8676f11bb |
children | 1d70fb83ff4a |
files | rust/rhg/src/commands/cat.rs tests/test-rhg.t |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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) }
--- 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]