mercurial/commands.py
branchstable
changeset 10564 6ded6243bde2
parent 10559 b1339234080e
child 10579 f142fa3c0a8c
--- a/mercurial/commands.py	Mon Mar 01 22:47:39 2010 +0100
+++ b/mercurial/commands.py	Mon Mar 01 23:27:44 2010 +0900
@@ -1544,6 +1544,8 @@
         doc = gettext(entry[0].__doc__)
         if not doc:
             doc = _("(no help text available)")
+        if hasattr(entry[0], 'definition'):  # aliased command
+            doc = _('alias for: hg %s\n\n%s') % (entry[0].definition, doc)
         if ui.quiet:
             doc = doc.splitlines()[0]
         keep = ui.verbose and ['verbose'] or []