mercurial/commands.py
changeset 10445 8b45102934e2
parent 10413 e433002acb05
child 10446 a565a2445eb5
equal deleted inserted replaced
10444:e99e0e077bc4 10445:8b45102934e2
  1525         doc = gettext(entry[0].__doc__)
  1525         doc = gettext(entry[0].__doc__)
  1526         if not doc:
  1526         if not doc:
  1527             doc = _("(no help text available)")
  1527             doc = _("(no help text available)")
  1528         if ui.quiet:
  1528         if ui.quiet:
  1529             doc = doc.splitlines()[0]
  1529             doc = doc.splitlines()[0]
  1530         ui.write("\n%s\n" % minirst.format(doc, textwidth))
  1530         keep = ui.verbose and ['verbose'] or []
       
  1531         formatted, pruned = minirst.format(doc, textwidth, keep=keep)
       
  1532         ui.write("\n%s\n" % formatted)
       
  1533         if pruned:
       
  1534             ui.write(_('\nuse "hg -v help %s" to show verbose help\n') % name)
  1531 
  1535 
  1532         if not ui.quiet:
  1536         if not ui.quiet:
  1533             # options
  1537             # options
  1534             if entry[1]:
  1538             if entry[1]:
  1535                 option_lists.append((_("options:\n"), entry[1]))
  1539                 option_lists.append((_("options:\n"), entry[1]))