Patchwork D9871: perf: test the formatting of a command help

login
register
mail settings
Submitter phabricator
Date Jan. 26, 2021, 2:37 a.m.
Message ID <differential-rev-PHID-DREV-ri35yz3n4v6iaw3csgut-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/48181/
State Superseded
Headers show

Comments

phabricator - Jan. 26, 2021, 2:37 a.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  Since we are about to addd ':' in command name I want this covered.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  tests/test-contrib-perf.t

CHANGE DETAILS




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

Patch

diff --git a/tests/test-contrib-perf.t b/tests/test-contrib-perf.t
--- a/tests/test-contrib-perf.t
+++ b/tests/test-contrib-perf.t
@@ -195,6 +195,20 @@ 
    perf--write   microbenchmark ui.write (and others)
   
   (use 'hg help -v perf' to show built-in aliases and global options)
+
+  $ hg help perfaddremove
+  hg perf--addremove
+  
+  aliases: perfaddremove
+  
+  (no help text available)
+  
+  options:
+  
+   -T --template TEMPLATE display with template
+  
+  (some details hidden, use --verbose to show complete help)
+
   $ hg perfaddremove
   $ hg perfancestors
   $ hg perfancestorset 2