# HG changeset patch # User Thomas Arendsen Hein # Date 2006-03-12 12:57:55 # Node ID 468730910353492aa86bc5e8aaaf30d6dc86e391 # Parent 283d2ab1e020e9c81c8dcad24348c2c95ece1061 Try to import extensions from the hgext module first. diff --git a/mercurial/commands.py b/mercurial/commands.py --- 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