# HG changeset patch # User kreijack@inwind.REMOVEME.it # Date 1123331251 -3600 # Node ID 5a717cfa74065429853d6a563fbe546605896de6 # Parent 859e7ea530bd6ba48f3b54bc76daecf4c1f7581a 'hg help -v' mentions the alias of the commands diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -333,6 +333,7 @@ def help_(ui, cmd=None): ui.write('basic hg commands (use "hg help -v" for more):\n\n') h = {} + cmds = {} for c, e in table.items(): f = c.split("|")[0] if not ui.verbose and not f.startswith("^"): @@ -344,12 +345,17 @@ def help_(ui, cmd=None): if e[0].__doc__: d = e[0].__doc__.splitlines(0)[0].rstrip() h[f] = d + cmds[f]=c.lstrip("^") fns = h.keys() fns.sort() m = max(map(len, fns)) for f in fns: - ui.write(' %-*s %s\n' % (m, f, h[f])) + if ui.verbose: + commands = cmds[f].replace("|",", ") + ui.write(" %s:\n %s\n"%(commands,h[f])) + else: + ui.write(' %-*s %s\n' % (m, f, h[f])) # Commands start here, listed alphabetically