equal
deleted
inserted
replaced
498 raise error.Abort(self.badalias, hint=hint) |
498 raise error.Abort(self.badalias, hint=hint) |
499 if self.shadows: |
499 if self.shadows: |
500 ui.debug("alias '%s' shadows command '%s'\n" % |
500 ui.debug("alias '%s' shadows command '%s'\n" % |
501 (self.name, self.cmdname)) |
501 (self.name, self.cmdname)) |
502 |
502 |
|
503 ui.log('commandalias', "alias '%s' expands to '%s'\n", |
|
504 self.name, self.definition) |
503 if util.safehasattr(self, 'shell'): |
505 if util.safehasattr(self, 'shell'): |
504 return self.fn(ui, *args, **opts) |
506 return self.fn(ui, *args, **opts) |
505 else: |
507 else: |
506 try: |
508 try: |
507 return util.checksignature(self.fn)(ui, *args, **opts) |
509 return util.checksignature(self.fn)(ui, *args, **opts) |