Patchwork [4,of,9,STABLE?,V2] gendoc: add show_doc_hgignore

login
register
mail settings
Submitter Takumi IINO
Date May 15, 2013, 7:14 a.m.
Message ID <e8cbf24c51e730190c31.1368602061@iino-no-MacBook-Air.local>
Download mbox | patch
Permalink /patch/1645/
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 1368600303 -32400
#      Wed May 15 15:45:03 2013 +0900
# Branch stable
# Node ID e8cbf24c51e730190c31474af159cf7e41802c4d
# Parent  4ff0ea3872414cffa1eaf8120e6fb359827c283a
gendoc: add show_doc_hgignore

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

Patch

diff --git a/doc/gendoc.py b/doc/gendoc.py
--- a/doc/gendoc.py
+++ b/doc/gendoc.py
@@ -97,6 +97,9 @@ 
             ui.write(minirst.subsubsection(_('Commands')))
             commandprinter(ui, cmdtable, minirst.subsubsubsection)
 
+def show_doc_hgignore(ui):
+    helpprinter(ui, helptable, None, include=['hgignore'])
+
 def helpprinter(ui, helptable, sectionfunc, include=[], exclude=[]):
     for names, sec, doc in helptable:
         if exclude and names[0] in exclude: