[PATCH] help: add internals.wireprotocolv2 to the table, and remove redundant header

Yuya Nishihara yuya at tcha.org
Thu Sep 6 13:33:51 UTC 2018


# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1536238530 -32400
#      Thu Sep 06 21:55:30 2018 +0900
# Node ID 7df9ae38c75ca7fd4d0d20802fbc4ab489bb1f06
# Parent  35ecaa999a12b2b2a02f15f108a0552e0937bcfb
help: add internals.wireprotocolv2 to the table, and remove redundant header

diff --git a/mercurial/help.py b/mercurial/help.py
--- a/mercurial/help.py
+++ b/mercurial/help.py
@@ -219,6 +219,8 @@ internalstable = sorted([
      loaddoc('revlogs', subdir='internals')),
     (['wireprotocol'], _('Wire Protocol'),
      loaddoc('wireprotocol', subdir='internals')),
+    (['wireprotocolv2'], _('Wire Protocol Version 2'),
+     loaddoc('wireprotocolv2', subdir='internals')),
 ])
 
 def internalshelp(ui):
diff --git a/mercurial/help/internals/wireprotocolv2.txt b/mercurial/help/internals/wireprotocolv2.txt
--- a/mercurial/help/internals/wireprotocolv2.txt
+++ b/mercurial/help/internals/wireprotocolv2.txt
@@ -1,6 +1,3 @@
-Wire Protocol Version 2
-=======================
-
 **Experimental and under active development**
 
 This section documents the wire protocol commands exposed to transports
diff --git a/tests/test-help.t b/tests/test-help.t
--- a/tests/test-help.t
+++ b/tests/test-help.t
@@ -1017,6 +1017,8 @@ internals topic renders index of availab
        requirements  Repository Requirements
        revlogs       Revision Logs
        wireprotocol  Wire Protocol
+       wireprotocolv2
+                     Wire Protocol Version 2
 
 sub-topics can be accessed
 
@@ -3343,6 +3345,13 @@ Sub-topic indexes rendered properly
   </td><td>
   Wire Protocol
   </td></tr>
+  <tr><td>
+  <a href="/help/internals.wireprotocolv2">
+  wireprotocolv2
+  </a>
+  </td><td>
+  Wire Protocol Version 2
+  </td></tr>
   
   
   


More information about the Mercurial-devel mailing list