Mercurial > public > mercurial-scm > hg
comparison mercurial/extensions.py @ 4617:669e76b7df24
extensions: pull extension-aware bits out of ui
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 18 Jun 2007 13:24:34 -0500 |
parents | 7de7a80e7422 |
children | ff7253a0d1da |
comparison
equal
deleted
inserted
replaced
4616:70352337934e | 4617:669e76b7df24 |
---|---|
61 ui.warn(_("extension '%s' overrides commands: %s\n") | 61 ui.warn(_("extension '%s' overrides commands: %s\n") |
62 % (name, " ".join(overrides))) | 62 % (name, " ".join(overrides))) |
63 commands.table.update(cmdtable) | 63 commands.table.update(cmdtable) |
64 | 64 |
65 def loadall(ui): | 65 def loadall(ui): |
66 for name, path in ui.extensions(): | 66 result = ui.configitems("extensions") |
67 for i, (name, path) in enumerate(result): | |
68 if path: | |
69 path = os.path.expanduser(path) | |
67 try: | 70 try: |
68 load(ui, name, path) | 71 load(ui, name, path) |
69 except (util.SignalInterrupt, KeyboardInterrupt): | 72 except (util.SignalInterrupt, KeyboardInterrupt): |
70 raise | 73 raise |
71 except Exception, inst: | 74 except Exception, inst: |