diff tests/test-help.t @ 27614:1d7e824ad093

help: include section heading if section depth changes This makes it easier to distinguish between: "format" -------- "usestore" ... Enabled by default. and "progress.format" Format of the progress bar.
author timeless <timeless@mozdev.org>
date Fri, 01 Jan 2016 16:59:13 +0000
parents 8f8f3b13252d
children b3376fba4ab9
line wrap: on
line diff
--- a/tests/test-help.t	Wed Dec 30 21:07:51 2015 +0000
+++ b/tests/test-help.t	Fri Jan 01 16:59:13 2016 +0000
@@ -1162,6 +1162,31 @@
   $ hg help config.type | egrep '^$'|wc -l
   \s*3 (re)
 
+Separate sections from subsections
+
+  $ hg help config.format | egrep '^    ("|-)|^\s*$' | uniq
+      "format"
+      --------
+  
+      "usegeneraldelta"
+  
+      "dotencode"
+  
+      "usefncache"
+  
+      "usestore"
+  
+      "profiling"
+      -----------
+  
+      "format"
+  
+      "progress"
+      ----------
+  
+      "format"
+  
+
 Last item in help config.*:
 
   $ hg help config.`hg help config|grep '^    "'| \