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

Takumi IINO trot.thunder at gmail.com
Tue May 14 02:29:14 CDT 2013


# HG changeset patch
# User Takumi IINO <trot.thunder at gmail.com>
# Date 1368513072 -32400
#      Tue May 14 15:31:12 2013 +0900
# Branch stable
# Node ID 9f112d483cee35bae8e26446fd3586ed943f9af9
# Parent  12443c4b0bc590efad558d16afa40a7c5c8a4590
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