Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/help.py @ 32076:d7b698ae153b stable
help: explain how to access subtopics in internals
author | Matt DeVore <matvore@google.com> |
---|---|
date | Wed, 19 Apr 2017 17:04:22 -0700 |
parents | 69d8fcf20014 |
children | 964c6be36590 |
comparison
equal
deleted
inserted
replaced
32075:7000196a8178 | 32076:d7b698ae153b |
---|---|
201 loaddoc('wireprotocol', subdir='internals')), | 201 loaddoc('wireprotocol', subdir='internals')), |
202 ]) | 202 ]) |
203 | 203 |
204 def internalshelp(ui): | 204 def internalshelp(ui): |
205 """Generate the index for the "internals" topic.""" | 205 """Generate the index for the "internals" topic.""" |
206 lines = [] | 206 lines = ['To access a subtopic, use "hg help internals.{subtopic-name}"\n', |
207 '\n'] | |
207 for names, header, doc in internalstable: | 208 for names, header, doc in internalstable: |
208 lines.append(' :%s: %s\n' % (names[0], header)) | 209 lines.append(' :%s: %s\n' % (names[0], header)) |
209 | 210 |
210 return ''.join(lines) | 211 return ''.join(lines) |
211 | 212 |