changeset 31144:71f692f1f678

color: update the help table We also need to reference the new topic in the great old help table.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 01 Mar 2017 20:22:04 +0100
parents 0bb3089fe735
children 6582b3716ae0
files mercurial/help.py tests/test-globalopts.t tests/test-help.t tests/test-hgweb-json.t
diffstat 4 files changed, 17 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/help.py	Sat Feb 25 14:09:55 2017 +0900
+++ b/mercurial/help.py	Wed Mar 01 20:22:04 2017 +0100
@@ -208,6 +208,7 @@
     return ''.join(lines)
 
 helptable = sorted([
+    (['color'], _("Colorizing Outputs"), loaddoc('color')),
     (["config", "hgrc"], _("Configuration Files"), loaddoc('config')),
     (["dates"], _("Date Formats"), loaddoc('dates')),
     (["patterns"], _("File Name Patterns"), loaddoc('patterns')),
--- a/tests/test-globalopts.t	Sat Feb 25 14:09:55 2017 +0900
+++ b/tests/test-globalopts.t	Wed Mar 01 20:22:04 2017 +0100
@@ -340,6 +340,7 @@
   
   additional help topics:
   
+   color         Colorizing Outputs
    config        Configuration Files
    dates         Date Formats
    diffs         Diff Formats
@@ -422,6 +423,7 @@
   
   additional help topics:
   
+   color         Colorizing Outputs
    config        Configuration Files
    dates         Date Formats
    diffs         Diff Formats
--- a/tests/test-help.t	Sat Feb 25 14:09:55 2017 +0900
+++ b/tests/test-help.t	Wed Mar 01 20:22:04 2017 +0100
@@ -102,6 +102,7 @@
   
   additional help topics:
   
+   color         Colorizing Outputs
    config        Configuration Files
    dates         Date Formats
    diffs         Diff Formats
@@ -178,6 +179,7 @@
   
   additional help topics:
   
+   color         Colorizing Outputs
    config        Configuration Files
    dates         Date Formats
    diffs         Diff Formats
@@ -825,6 +827,7 @@
   
   additional help topics:
   
+   color         Colorizing Outputs
    config        Configuration Files
    dates         Date Formats
    diffs         Diff Formats
@@ -1859,6 +1862,13 @@
   <tr><td colspan="2"><h2><a name="topics" href="#topics">Topics</a></h2></td></tr>
   
   <tr><td>
+  <a href="/help/color">
+  color
+  </a>
+  </td><td>
+  Colorizing Outputs
+  </td></tr>
+  <tr><td>
   <a href="/help/config">
   config
   </a>
--- a/tests/test-hgweb-json.t	Sat Feb 25 14:09:55 2017 +0900
+++ b/tests/test-hgweb-json.t	Wed Mar 01 20:22:04 2017 +0100
@@ -1549,6 +1549,10 @@
     ],
     "topics": [
       {
+        "summary": "Colorizing Outputs",
+        "topic": "color"
+      },
+      {
         "summary": "Configuration Files",
         "topic": "config"
       },