Show More
@@ -5,7 +5,7 b' sys.path.insert(0, "..")' | |||||
5 | sys.path.append(os.path.join('..', 'mercurial', 'pure')) |
|
5 | sys.path.append(os.path.join('..', 'mercurial', 'pure')) | |
6 | from mercurial import demandimport; demandimport.enable() |
|
6 | from mercurial import demandimport; demandimport.enable() | |
7 | from mercurial.commands import table, globalopts |
|
7 | from mercurial.commands import table, globalopts | |
8 |
from mercurial.i18n import |
|
8 | from mercurial.i18n import _ | |
9 | from mercurial.help import helptable |
|
9 | from mercurial.help import helptable | |
10 |
|
10 | |||
11 | def get_desc(docstr): |
|
11 | def get_desc(docstr): | |
@@ -102,11 +102,9 b' def show_doc(ui):' | |||||
102 |
|
102 | |||
103 | # print topics |
|
103 | # print topics | |
104 | for names, section, doc in helptable: |
|
104 | for names, section, doc in helptable: | |
105 |
underlined( |
|
105 | underlined(section.upper()) | |
106 | if callable(doc): |
|
106 | if callable(doc): | |
107 | doc = doc() |
|
107 | doc = doc() | |
108 | else: |
|
|||
109 | doc = gettext(doc) |
|
|||
110 | ui.write(doc) |
|
108 | ui.write(doc) | |
111 | ui.write("\n") |
|
109 | ui.write("\n") | |
112 |
|
110 |
General Comments 0
You need to be logged in to leave comments.
Login now