mercurial/extensions.py
changeset 28541 4b81487a01d4
parent 28506 10252652c6e4
child 29162 5a3197cbe415
--- a/mercurial/extensions.py	Sun Mar 13 05:17:06 2016 +0900
+++ b/mercurial/extensions.py	Fri Mar 11 10:30:08 2016 +0000
@@ -105,7 +105,11 @@
             mod = _importh("hgext.%s" % name)
         except ImportError as err:
             _reportimporterror(ui, err, "hgext.%s" % name, name)
-            mod = _importh(name)
+            try:
+                mod = _importh("hgext3rd.%s" % name)
+            except ImportError as err:
+                _reportimporterror(ui, err, "hgext3rd.%s" % name, name)
+                mod = _importh(name)
 
     # Before we do anything with the extension, check against minimum stated
     # compatibility. This gives extension authors a mechanism to have their