mercurial/commands.py
changeset 14954 ce7e3014fda7
parent 14949 a4435770cf57
child 14986 70e11de6964d
equal deleted inserted replaced
14953:6ee6ecf1ee89 14954:ce7e3014fda7
  2646 
  2646 
  2647         # description
  2647         # description
  2648         doc = gettext(entry[0].__doc__)
  2648         doc = gettext(entry[0].__doc__)
  2649         if not doc:
  2649         if not doc:
  2650             doc = _("(no help text available)")
  2650             doc = _("(no help text available)")
  2651         if hasattr(entry[0], 'definition'):  # aliased command
  2651         if util.safehasattr(entry[0], 'definition'):  # aliased command
  2652             if entry[0].definition.startswith('!'):  # shell alias
  2652             if entry[0].definition.startswith('!'):  # shell alias
  2653                 doc = _('shell alias for::\n\n    %s') % entry[0].definition[1:]
  2653                 doc = _('shell alias for::\n\n    %s') % entry[0].definition[1:]
  2654             else:
  2654             else:
  2655                 doc = _('alias for: hg %s\n\n%s') % (entry[0].definition, doc)
  2655                 doc = _('alias for: hg %s\n\n%s') % (entry[0].definition, doc)
  2656         if ui.quiet or not full:
  2656         if ui.quiet or not full: