changeset 1889:468730910353

Try to import extensions from the hgext module first.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 12 Mar 2006 13:57:55 +0100
parents 283d2ab1e020
children d4545f1b8bfa
files mercurial/commands.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Mar 12 12:29:03 2006 +0100
+++ b/mercurial/commands.py	Sun Mar 12 13:57:55 2006 +0100
@@ -2795,7 +2795,10 @@
                     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