# HG changeset patch # User Martin Geisler # Date 2010-10-22 22:18:10 # Node ID 58bc5024805dc304c99dad74dc1d52204f71f9c9 # Parent 13fdef670c43ac60aee9e620b281b3f88e74b5e8 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.. diff --git a/doc/gendoc.py b/doc/gendoc.py --- a/doc/gendoc.py +++ b/doc/gendoc.py @@ -135,7 +135,7 @@ def commandprinter(ui, cmdtable, section 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])