##// END OF EJS Templates
alias: fixes exception when displaying translated help text...
Yuya Nishihara -
r10564:6ded6243 stable
parent child Browse files
Show More
@@ -1544,6 +1544,8 b' def help_(ui, name=None, with_version=Fa'
1544 1544 doc = gettext(entry[0].__doc__)
1545 1545 if not doc:
1546 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 1549 if ui.quiet:
1548 1550 doc = doc.splitlines()[0]
1549 1551 keep = ui.verbose and ['verbose'] or []
@@ -208,8 +208,7 b' class cmdalias(object):'
208 208 if self.help.startswith("hg " + cmd):
209 209 # drop prefix in old-style help lines so hg shows the alias
210 210 self.help = self.help[4 + len(cmd):]
211 self.__doc__ = _("alias for: hg %s\n\n%s") \
212 % (definition, self.fn.__doc__)
211 self.__doc__ = self.fn.__doc__
213 212
214 213 except error.UnknownCommand:
215 214 def fn(ui, *args):
General Comments 0
You need to be logged in to leave comments. Login now