Show More
@@ -191,7 +191,8 b' def makeitemsdoc(ui, topic, doc, marker,' | |||
|
191 | 191 | entries = [] |
|
192 | 192 | for name in sorted(items): |
|
193 | 193 | text = (items[name].__doc__ or '').rstrip() |
|
194 |
if not text |
|
|
194 | if (not text | |
|
195 | or not ui.verbose and any(w in text for w in _exclkeywords)): | |
|
195 | 196 | continue |
|
196 | 197 | text = gettext(text) |
|
197 | 198 | if dedent: |
@@ -980,6 +980,12 b' Test templating help' | |||
|
980 | 980 | firstline Any text. Returns the first line of text. |
|
981 | 981 | nonempty Any text. Returns '(none)' if the string is empty. |
|
982 | 982 | |
|
983 | Test deprecated items | |
|
984 | ||
|
985 | $ hg help -v templating | grep currentbookmark | |
|
986 | currentbookmark | |
|
987 | $ hg help templating | (grep currentbookmark || true) | |
|
988 | ||
|
983 | 989 | Test help hooks |
|
984 | 990 | |
|
985 | 991 | $ cat > helphook1.py <<EOF |
General Comments 0
You need to be logged in to leave comments.
Login now