Show More
@@ -1544,6 +1544,8 b' def help_(ui, name=None, with_version=Fa' | |||||
1544 | doc = gettext(entry[0].__doc__) |
|
1544 | doc = gettext(entry[0].__doc__) | |
1545 | if not doc: |
|
1545 | if not doc: | |
1546 | doc = _("(no help text available)") |
|
1546 | doc = _("(no help text available)") | |
|
1547 | if hasattr(entry[0], 'definition'): # aliased command | |||
|
1548 | doc = _('alias for: hg %s\n\n%s') % (entry[0].definition, doc) | |||
1547 | if ui.quiet: |
|
1549 | if ui.quiet: | |
1548 | doc = doc.splitlines()[0] |
|
1550 | doc = doc.splitlines()[0] | |
1549 | keep = ui.verbose and ['verbose'] or [] |
|
1551 | keep = ui.verbose and ['verbose'] or [] |
@@ -208,8 +208,7 b' class cmdalias(object):' | |||||
208 | if self.help.startswith("hg " + cmd): |
|
208 | if self.help.startswith("hg " + cmd): | |
209 | # drop prefix in old-style help lines so hg shows the alias |
|
209 | # drop prefix in old-style help lines so hg shows the alias | |
210 | self.help = self.help[4 + len(cmd):] |
|
210 | self.help = self.help[4 + len(cmd):] | |
211 | self.__doc__ = _("alias for: hg %s\n\n%s") \ |
|
211 | self.__doc__ = self.fn.__doc__ | |
212 | % (definition, self.fn.__doc__) |
|
|||
213 |
|
212 | |||
214 | except error.UnknownCommand: |
|
213 | except error.UnknownCommand: | |
215 | def fn(ui, *args): |
|
214 | def fn(ui, *args): |
General Comments 0
You need to be logged in to leave comments.
Login now