equal
deleted
inserted
replaced
67 for comp in components[1:]: |
67 for comp in components[1:]: |
68 mod = getattr(mod, comp) |
68 mod = getattr(mod, comp) |
69 return mod |
69 return mod |
70 try: |
70 try: |
71 mod = importh("hgext.%s" % name) |
71 mod = importh("hgext.%s" % name) |
72 except ImportError: |
72 except ImportError, err: |
|
73 ui.debug('could not import hgext.%s (%s): trying %s\n' |
|
74 % (name, err, name)) |
73 mod = importh(name) |
75 mod = importh(name) |
74 _extensions[shortname] = mod |
76 _extensions[shortname] = mod |
75 _order.append(shortname) |
77 _order.append(shortname) |
76 return mod |
78 return mod |
77 |
79 |