[PATCH 5 of 9 STABLE? V2] gendoc: add show_doc_hgrc

Takumi IINO trot.thunder at gmail.com
Wed May 15 02:14:22 CDT 2013


# HG changeset patch
# User Takumi IINO <trot.thunder at gmail.com>
# Date 1368600306 -32400
#      Wed May 15 15:45:06 2013 +0900
# Branch stable
# Node ID fe6f4a4f4d39947f19f1238177df6cc9bc71ad82
# Parent  e8cbf24c51e730190c31474af159cf7e41802c4d
gendoc: add show_doc_hgrc

This function prints hgrc.5.gendoc.txt content.

diff --git a/doc/gendoc.py b/doc/gendoc.py
--- a/doc/gendoc.py
+++ b/doc/gendoc.py
@@ -100,6 +100,9 @@
 def show_doc_hgignore(ui):
     helpprinter(ui, helptable, None, include=['hgignore'])
 
+def show_doc_hgrc(ui):
+    helpprinter(ui, helptable, None, include=['config'])
+
 def helpprinter(ui, helptable, sectionfunc, include=[], exclude=[]):
     for names, sec, doc in helptable:
         if exclude and names[0] in exclude:


More information about the Mercurial-devel mailing list