Patchwork [1,of,5,V3] gendoc: rename to showdoc from show_doc

login
register
mail settings
Submitter Takumi IINO
Date July 3, 2013, 1:20 p.m.
Message ID <1c93b4ca748ccf3db1a2.1372857650@iino-no-MacBook-Air.local>
Download mbox | patch
Permalink /patch/1785/
State Accepted
Commit 5046fede7684419e773d222b3da7226605f4377e
Headers show

Comments

Takumi IINO - July 3, 2013, 1:20 p.m.
# HG changeset patch
# User Takumi IINO <trot.thunder@gmail.com>
# Date 1372855777 -32400
#      Wed Jul 03 21:49:37 2013 +0900
# Node ID 1c93b4ca748ccf3db1a2a6a5ee72d6a4221a871e
# Parent  648d1974b3f328947ee6cf2d00c66815a33cd208
gendoc: rename to showdoc from show_doc

This function prints hg.1.gendoc.txt content.

Patch

diff --git a/doc/gendoc.py b/doc/gendoc.py
--- a/doc/gendoc.py
+++ b/doc/gendoc.py
@@ -63,7 +63,7 @@ 
 
     return d
 
-def show_doc(ui):
+def showdoc(ui):
     # print options
     ui.write(minirst.section(_("Options")))
     for optstr, desc in get_opts(globalopts):
@@ -157,4 +157,4 @@ 
     return extensions.enabled().keys() + extensions.disabled().keys()
 
 if __name__ == "__main__":
-    show_doc(sys.stdout)
+    showdoc(sys.stdout)