diff tests/test-help.t @ 17648:07f1ac17b722

doc: add the tool to check section marks in help documents This patch adds "doc/check-seclevel.py" which checks below in help documents: - whether unknown or unavailable section marks are used or not - whether appropriate section mark is used at sub-sectioning It should be invoked in "doc" directory. It checks all help documents of Mercurial (topics, commands, extensions), if no file is specified by --file option. With --file option, it checks contents of the specified file as help document, for self testing purpose: -t/-c/-e/-C are used to specify what kind of help document contents of the specified file is. This checking is related to changeset 979b107eaea2.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Mon, 13 Aug 2012 21:25:48 +0900
parents 7124f984dc8d
children 009db477c9fb
line wrap: on
line diff
--- a/tests/test-help.t	Fri Sep 21 19:27:22 2012 +0200
+++ b/tests/test-help.t	Mon Aug 13 21:25:48 2012 +0900
@@ -802,3 +802,7 @@
   
    qclone clone main and patch repository at same time
 
+Test usage of section marks in help documents
+
+  $ cd "$TESTDIR"/../doc
+  $ python check-seclevel.py