perf: test the formatting of a command help
authorPierre-Yves David <pierre-yves.david@octobus.net>
Mon, 25 Jan 2021 23:13:01 +0100
changeset 46387 c41ac8985fe4
parent 46386 d481f30ea8e3
child 46388 d8ad391e10f5
perf: test the formatting of a command help Since we are about to addd ':' in command name I want this covered. Differential Revision: https://phab.mercurial-scm.org/D9871
tests/test-contrib-perf.t
--- a/tests/test-contrib-perf.t	Mon Jan 25 23:08:33 2021 +0100
+++ b/tests/test-contrib-perf.t	Mon Jan 25 23:13:01 2021 +0100
@@ -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