Patchwork [5,of,9,STABLE?] gendoc: add show_doc_hgrc

login
register
mail settings
Submitter Takumi IINO
Date May 14, 2013, 7:29 a.m.
Message ID <9f112d483cee35bae8e2.1368516554@iino-no-MacBook-Air.local>
Download mbox | patch
Permalink /patch/1627/
State Rejected, archived
Headers show

Comments

Takumi IINO - May 14, 2013, 7:29 a.m.
# HG changeset patch
# User Takumi IINO <trot.thunder@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.

Patch

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: