Mercurial > public > mercurial-scm > hg-stable
comparison doc/check-seclevel.py @ 26413:e0c572d4d112
help: pass around ui to doc loader (API)
This is necessary to hide DEPRECATED items conditionally.
Flagged as API change because it will break "hg help git|subversion".
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 26 Sep 2015 12:06:30 +0900 |
parents | dd62eaa82cbe |
children | ab776610fc6d |
comparison
equal
deleted
inserted
replaced
26412:7e8e3c0920a6 | 26413:e0c572d4d112 |
---|---|
77 | 77 |
78 def checkhghelps(ui): | 78 def checkhghelps(ui): |
79 errorcnt = 0 | 79 errorcnt = 0 |
80 for names, sec, doc in helptable: | 80 for names, sec, doc in helptable: |
81 if callable(doc): | 81 if callable(doc): |
82 doc = doc() | 82 doc = doc(ui) |
83 errorcnt += checkseclevel(ui, doc, | 83 errorcnt += checkseclevel(ui, doc, |
84 '%s help topic' % names[0], | 84 '%s help topic' % names[0], |
85 initlevel_topic) | 85 initlevel_topic) |
86 | 86 |
87 errorcnt += checkcmdtable(ui, table, '%s command', initlevel_cmd) | 87 errorcnt += checkcmdtable(ui, table, '%s command', initlevel_cmd) |