mercurial/extensions.py
changeset 30029 ebe488e04ca3
parent 29899 b1ebc767563d
child 30030 3741a8f86e88
equal deleted inserted replaced
30028:ba06562a06a2 30029:ebe488e04ca3
   103         mod = loadpath(path, 'hgext.%s' % name)
   103         mod = loadpath(path, 'hgext.%s' % name)
   104     else:
   104     else:
   105         try:
   105         try:
   106             mod = _importh("hgext.%s" % name)
   106             mod = _importh("hgext.%s" % name)
   107         except ImportError as err:
   107         except ImportError as err:
   108             _reportimporterror(ui, err, "hgext.%s" % name, name)
   108             _reportimporterror(ui, err, "hgext.%s" % name, "hgext3rd.%s" % name)
   109             try:
   109             try:
   110                 mod = _importh("hgext3rd.%s" % name)
   110                 mod = _importh("hgext3rd.%s" % name)
   111             except ImportError as err:
   111             except ImportError as err:
   112                 _reportimporterror(ui, err, "hgext3rd.%s" % name, name)
   112                 _reportimporterror(ui, err, "hgext3rd.%s" % name, name)
   113                 mod = _importh(name)
   113                 mod = _importh(name)