Show More
@@ -14,6 +14,7 b' from mercurial.commands import table, gl' | |||||
14 | from mercurial.i18n import gettext, _ |
|
14 | from mercurial.i18n import gettext, _ | |
15 | from mercurial.help import helptable, loaddoc |
|
15 | from mercurial.help import helptable, loaddoc | |
16 | from mercurial import extensions |
|
16 | from mercurial import extensions | |
|
17 | from mercurial import ui as uimod | |||
17 |
|
18 | |||
18 | def get_desc(docstr): |
|
19 | def get_desc(docstr): | |
19 | if not docstr: |
|
20 | if not docstr: | |
@@ -198,7 +199,8 b' if __name__ == "__main__":' | |||||
198 | if len(sys.argv) > 1: |
|
199 | if len(sys.argv) > 1: | |
199 | doc = sys.argv[1] |
|
200 | doc = sys.argv[1] | |
200 |
|
201 | |||
|
202 | ui = uimod.ui() | |||
201 | if doc == 'hg.1.gendoc': |
|
203 | if doc == 'hg.1.gendoc': | |
202 |
showdoc( |
|
204 | showdoc(ui) | |
203 | else: |
|
205 | else: | |
204 |
showtopic( |
|
206 | showtopic(ui, sys.argv[1]) |
General Comments 0
You need to be logged in to leave comments.
Login now