equal
deleted
inserted
replaced
358 # (uisetup is handled in extensions.loadall) |
358 # (uisetup is handled in extensions.loadall) |
359 |
359 |
360 for name, module in exts: |
360 for name, module in exts: |
361 extsetup = getattr(module, 'extsetup', None) |
361 extsetup = getattr(module, 'extsetup', None) |
362 if extsetup: |
362 if extsetup: |
363 extsetup() |
363 try: |
|
364 extsetup(ui) |
|
365 except TypeError: |
|
366 if extsetup.func_code.co_argcount != 0: |
|
367 raise |
|
368 extsetup() # old extsetup with no ui argument |
364 |
369 |
365 for name, module in exts: |
370 for name, module in exts: |
366 cmdtable = getattr(module, 'cmdtable', {}) |
371 cmdtable = getattr(module, 'cmdtable', {}) |
367 overrides = [cmd for cmd in cmdtable if cmd in commands.table] |
372 overrides = [cmd for cmd in cmdtable if cmd in commands.table] |
368 if overrides: |
373 if overrides: |