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

login
register
mail settings
Submitter Takumi IINO
Date May 14, 2013, 7:29 a.m.
Message ID <12443c4b0bc590efad55.1368516553@iino-no-MacBook-Air.local>
Download mbox | patch
Permalink /patch/1626/
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 12443c4b0bc590efad558d16afa40a7c5c8a4590
# Parent  eb1e252a760cb6aa0909b24010d7bc7d1b954b35
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: