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

Takumi IINO trot.thunder at gmail.com
Wed Jul 3 08:20:50 CDT 2013


# HG changeset patch
# User Takumi IINO <trot.thunder at 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.

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)


More information about the Mercurial-devel mailing list