# HG changeset patch # User Matt DeVore # Date 2017-04-20 00:04:22 # Node ID d7b698ae153b17bd00d6a5fc8792190714454576 # Parent 7000196a8178202540e2b283dd8ee79b4aaa4d48 help: explain how to access subtopics in internals diff --git a/mercurial/help.py b/mercurial/help.py --- a/mercurial/help.py +++ b/mercurial/help.py @@ -203,7 +203,8 @@ internalstable = sorted([ def internalshelp(ui): """Generate the index for the "internals" topic.""" - lines = [] + lines = ['To access a subtopic, use "hg help internals.{subtopic-name}"\n', + '\n'] for names, header, doc in internalstable: lines.append(' :%s: %s\n' % (names[0], header)) diff --git a/tests/test-help.t b/tests/test-help.t --- a/tests/test-help.t +++ b/tests/test-help.t @@ -943,6 +943,8 @@ internals topic renders index of availab Technical implementation topics """"""""""""""""""""""""""""""" + To access a subtopic, use "hg help internals.{subtopic-name}" + bundles Bundles censor Censor changegroups Changegroups