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
--- 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]