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