Show More
@@ -1,4 +1,4 b'' | |||
|
1 | import os, sys | |
|
1 | import os, sys, textwrap | |
|
2 | 2 | # import from the live mercurial repo |
|
3 | 3 | sys.path.insert(0, "..") |
|
4 | 4 | # fall back to pure modules if required C extensions are not available |
@@ -21,7 +21,10 b' def get_desc(docstr):' | |||
|
21 | 21 | if i != -1: |
|
22 | 22 | desc = docstr[i + 2:] |
|
23 | 23 | else: |
|
24 |
desc = |
|
|
24 | desc = shortdesc | |
|
25 | ||
|
26 | desc = textwrap.dedent(desc) | |
|
27 | ||
|
25 | 28 | return (shortdesc, desc) |
|
26 | 29 | |
|
27 | 30 | def get_opts(opts): |
@@ -102,6 +105,7 b' def commandprinter(ui, cmdtable):' | |||
|
102 | 105 | subsection(ui, d['cmd']) |
|
103 | 106 | # synopsis |
|
104 | 107 | ui.write("``%s``\n" % d['synopsis'].replace("hg ","", 1)) |
|
108 | ui.write("\n") | |
|
105 | 109 | # description |
|
106 | 110 | ui.write("%s\n\n" % d['desc'][1]) |
|
107 | 111 | # options |
General Comments 0
You need to be logged in to leave comments.
Login now