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