[PATCH v2] help: explain how to access subtopics in internals

Matt DeVore matvore at google.com
Wed Apr 26 00:48:48 UTC 2017


# HG changeset patch
# User Matt DeVore <matvore at google.com>
# Date 1492646662 25200
#      Wed Apr 19 17:04:22 2017 -0700
# Node ID b801bcc0a441048af76f531c6cef897b28ed1002
# Parent  ed42e00a5c4ec7a3bebaec699ef934429cdc2ddd
help: explain how to access subtopics in internals

diff -r ed42e00a5c4e -r b801bcc0a441 mercurial/help.py
--- a/mercurial/help.py	Thu Apr 13 22:31:17 2017 +0900
+++ b/mercurial/help.py	Wed Apr 19 17:04:22 2017 -0700
@@ -203,7 +203,8 @@
 
 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 -r ed42e00a5c4e -r b801bcc0a441 tests/test-help.t
--- a/tests/test-help.t	Thu Apr 13 22:31:17 2017 +0900
+++ b/tests/test-help.t	Wed Apr 19 17:04:22 2017 -0700
@@ -943,6 +943,8 @@
   Technical implementation topics
   """""""""""""""""""""""""""""""
   
+      To access a subtopic, use "hg help internals.{subtopic-name}"
+  
        bundles       Bundles
        censor        Censor
        changegroups  Changegroups


More information about the Mercurial-devel mailing list