Patchwork D11617: rhg: in rhg cat cli, fix the long name of the --rev flag\n\nAlso tweak the help for the anonymous argument.

login
register
mail settings
Submitter phabricator
Date Oct. 5, 2021, 3:09 p.m.
Message ID <differential-rev-PHID-DREV-fcrex2aplxsyekwtco6q-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49941/
State Superseded
Headers show

Comments

phabricator - Oct. 5, 2021, 3:09 p.m.
aalekseyev created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11617

AFFECTED FILES
  rust/rhg/src/commands/cat.rs
  tests/test-rhg.t

CHANGE DETAILS




To: aalekseyev, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/test-rhg.t b/tests/test-rhg.t
--- a/tests/test-rhg.t
+++ b/tests/test-rhg.t
@@ -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]
diff --git a/rust/rhg/src/commands/cat.rs b/rust/rhg/src/commands/cat.rs
--- a/rust/rhg/src/commands/cat.rs
+++ b/rust/rhg/src/commands/cat.rs
@@ -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)
 }