Show More
@@ -190,6 +190,7 b' def aliasargs(fn):' | |||
|
190 | 190 | class cmdalias(object): |
|
191 | 191 | def __init__(self, name, definition, cmdtable): |
|
192 | 192 | self.name = self.cmd = name |
|
193 | self.cmdname = '' | |
|
193 | 194 | self.definition = definition |
|
194 | 195 | self.args = [] |
|
195 | 196 | self.opts = [] |
@@ -234,7 +235,7 b' class cmdalias(object):' | |||
|
234 | 235 | return |
|
235 | 236 | |
|
236 | 237 | args = shlex.split(self.definition) |
|
237 | cmd = args.pop(0) | |
|
238 | self.cmdname = cmd = args.pop(0) | |
|
238 | 239 | args = map(util.expandpath, args) |
|
239 | 240 | |
|
240 | 241 | for invalidarg in ("--cwd", "-R", "--repository", "--repo"): |
@@ -286,7 +287,8 b' class cmdalias(object):' | |||
|
286 | 287 | |
|
287 | 288 | def __call__(self, ui, *args, **opts): |
|
288 | 289 | if self.shadows: |
|
289 |
ui.debug("alias '%s' shadows command\n" % |
|
|
290 | ui.debug("alias '%s' shadows command '%s'\n" % | |
|
291 | (self.name, self.cmdname)) | |
|
290 | 292 | |
|
291 | 293 | if self.definition.startswith('!'): |
|
292 | 294 | return self.fn(ui, *args, **opts) |
General Comments 0
You need to be logged in to leave comments.
Login now