equal
deleted
inserted
replaced
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: |