mercurial/commands.py
changeset 14943 d3bb825ddae3
parent 14918 ebdfdba0faaf
child 14949 a4435770cf57
equal deleted inserted replaced
14942:5b072d4b62f2 14943:d3bb825ddae3
  2730             raise error.UnknownCommand(name)
  2730             raise error.UnknownCommand(name)
  2731 
  2731 
  2732         # description
  2732         # description
  2733         if not doc:
  2733         if not doc:
  2734             doc = _("(no help text available)")
  2734             doc = _("(no help text available)")
  2735         if hasattr(doc, '__call__'):
  2735         if util.safehasattr(doc, '__call__'):
  2736             doc = doc()
  2736             doc = doc()
  2737 
  2737 
  2738         ui.write("%s\n\n" % header)
  2738         ui.write("%s\n\n" % header)
  2739         ui.write("%s\n" % minirst.format(doc, textwidth, indent=4))
  2739         ui.write("%s\n" % minirst.format(doc, textwidth, indent=4))
  2740         try:
  2740         try: