mercurial/extensions.py
changeset 15199 56da00994067
parent 14943 d3bb825ddae3
child 16666 b9bef21cd214
equal deleted inserted replaced
15198:62dc0e7ab092 15199:56da00994067
    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