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