gendoc: do not strip 'hg ' from synopsis stable
authorMartin Geisler <mg@lazybytes.net>
Sat, 23 Oct 2010 00:18:10 +0200
branchstable
changeset 12814 58bc5024805d
parent 12813 13fdef670c43
child 12815 079a618ea89d
child 12834 b814f67d41c0
gendoc: do not strip 'hg ' from synopsis This was an old left-over from when the synopsis line was used as a header. We now have the command name by itself as the header and the synopsis as a literal block immediately after..
doc/gendoc.py
--- a/doc/gendoc.py	Sat Oct 23 00:11:39 2010 +0200
+++ b/doc/gendoc.py	Sat Oct 23 00:18:10 2010 +0200
@@ -135,7 +135,7 @@
         for line in synopsislines:
             # some commands (such as rebase) have a multi-line
             # synopsis
-            ui.write("   %s\n" % line.replace("hg ","", 1))
+            ui.write("   %s\n" % line)
         ui.write('\n')
         # description
         ui.write("%s\n\n" % d['desc'][1])