Mercurial > hg > pyhgsh
comparison mercurial/commands.py @ 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 | 913397c27cd8 |
children | 622ee75cb4c9 |
comparison
equal
deleted
inserted
replaced
1888:283d2ab1e020 | 1889:468730910353 |
---|---|
2793 components = name.split('.') | 2793 components = name.split('.') |
2794 for comp in components[1:]: | 2794 for comp in components[1:]: |
2795 mod = getattr(mod, comp) | 2795 mod = getattr(mod, comp) |
2796 return mod | 2796 return mod |
2797 try: | 2797 try: |
2798 mod = importh(x[0]) | 2798 try: |
2799 mod = importh("hgext." + x[0]) | |
2800 except ImportError: | |
2801 mod = importh(x[0]) | |
2799 except Exception, inst: | 2802 except Exception, inst: |
2800 on_exception(Exception, inst) | 2803 on_exception(Exception, inst) |
2801 continue | 2804 continue |
2802 | 2805 |
2803 external.append(mod) | 2806 external.append(mod) |