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

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

Comments

Takumi IINO - May 15, 2013, 7:14 a.m.
# HG changeset patch
# User Takumi IINO <trot.thunder@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.
Matt Mackall - May 23, 2013, 10:46 p.m.
On Wed, 2013-05-15 at 16:14 +0900, Takumi IINO wrote:
> # HG changeset patch
> # User Takumi IINO <trot.thunder@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'])
> +

This and the previous patch seem too trivial to warrant their own
functions.

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: