Show More
@@ -528,17 +528,15 b' def addaliases(ui, cmdtable):' | |||||
528 | # may use extension commands. Aliases can also use other alias definitions, |
|
528 | # may use extension commands. Aliases can also use other alias definitions, | |
529 | # but only if they have been defined prior to the current definition. |
|
529 | # but only if they have been defined prior to the current definition. | |
530 | for alias, definition in ui.configitems('alias'): |
|
530 | for alias, definition in ui.configitems('alias'): | |
531 | source = ui.configsource('alias', alias) |
|
|||
532 | aliasdef = cmdalias(alias, definition, cmdtable, source) |
|
|||
533 |
|
||||
534 | try: |
|
531 | try: | |
535 |
|
|
532 | if cmdtable[alias][0].definition == definition: | |
536 | if olddef.definition == aliasdef.definition: |
|
|||
537 | continue |
|
533 | continue | |
538 | except (KeyError, AttributeError): |
|
534 | except (KeyError, AttributeError): | |
539 | # definition might not exist or it might not be a cmdalias |
|
535 | # definition might not exist or it might not be a cmdalias | |
540 | pass |
|
536 | pass | |
541 |
|
537 | |||
|
538 | source = ui.configsource('alias', alias) | |||
|
539 | aliasdef = cmdalias(alias, definition, cmdtable, source) | |||
542 | cmdtable[aliasdef.name] = (aliasdef, aliasdef.opts, aliasdef.help) |
|
540 | cmdtable[aliasdef.name] = (aliasdef, aliasdef.opts, aliasdef.help) | |
543 |
|
541 | |||
544 | def _parse(ui, args): |
|
542 | def _parse(ui, args): |
General Comments 0
You need to be logged in to leave comments.
Login now