Show More
@@ -200,6 +200,12 b' class cmdalias(object):' | |||||
200 | self.args = aliasargs(self.fn) + args |
|
200 | self.args = aliasargs(self.fn) + args | |
201 | if cmd not in commands.norepo.split(' '): |
|
201 | if cmd not in commands.norepo.split(' '): | |
202 | self.norepo = False |
|
202 | self.norepo = False | |
|
203 | if self.help.startswith("hg " + cmd): | |||
|
204 | # drop prefix in old-style help lines so hg shows the alias | |||
|
205 | self.help = self.help[4 + len(cmd):] | |||
|
206 | self.__doc__ = _("alias for: hg %s\n\n%s") \ | |||
|
207 | % (definition, self.fn.__doc__) | |||
|
208 | ||||
203 | except error.UnknownCommand: |
|
209 | except error.UnknownCommand: | |
204 | def fn(ui, *args): |
|
210 | def fn(ui, *args): | |
205 | ui.warn(_("alias '%s' resolves to unknown command '%s'\n") \ |
|
211 | ui.warn(_("alias '%s' resolves to unknown command '%s'\n") \ |
General Comments 0
You need to be logged in to leave comments.
Login now