mercurial/commands.py
changeset 1889 468730910353
parent 1887 913397c27cd8
child 1892 622ee75cb4c9
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -2795,7 +2795,10 @@ def dispatch(args):
                     mod = getattr(mod, comp)
                 return mod
             try:
-                mod = importh(x[0])
+                try:
+                    mod = importh("hgext." + x[0])
+                except ImportError:
+                    mod = importh(x[0])
             except Exception, inst:
                 on_exception(Exception, inst)
                 continue