Mercurial > hg
comparison doc/check-seclevel.py @ 40292:9c6473d2038b
help: splitting the topics by category
Differential Revision: https://phab.mercurial-scm.org/D5066
author | Rodrigo Damazio <rdamazio@google.com> |
---|---|
date | Fri, 12 Oct 2018 17:57:36 +0200 |
parents | e9f456183402 |
children | 77763dc5b07b |
comparison
equal
deleted
inserted
replaced
40291:170926caf44c | 40292:9c6473d2038b |
---|---|
85 initlevel) | 85 initlevel) |
86 return errorcnt | 86 return errorcnt |
87 | 87 |
88 def checkhghelps(ui): | 88 def checkhghelps(ui): |
89 errorcnt = 0 | 89 errorcnt = 0 |
90 for names, sec, doc in helptable: | 90 for h in helptable: |
91 names, sec, doc = h[0:3] | |
91 if callable(doc): | 92 if callable(doc): |
92 doc = doc(ui) | 93 doc = doc(ui) |
93 errorcnt += checkseclevel(ui, doc, | 94 errorcnt += checkseclevel(ui, doc, |
94 '%s help topic' % names[0], | 95 '%s help topic' % names[0], |
95 initlevel_topic) | 96 initlevel_topic) |