mercurial/commands.py
changeset 2405 4593d09e534d
parent 2400 2e90024e1471
child 2406 4a678e408ce5
equal deleted inserted replaced
2404:ffc3b2f1ab6a 2405:4593d09e534d
  3236 
  3236 
  3237     external = []
  3237     external = []
  3238     for x in u.extensions():
  3238     for x in u.extensions():
  3239         try:
  3239         try:
  3240             if x[1]:
  3240             if x[1]:
  3241                 mod = imp.load_source(x[0], x[1])
  3241                 # the module will be loaded in sys.modules
       
  3242                 # choose an unique name so that it doesn't
       
  3243                 # conflicts with other modules
       
  3244                 module_name = "hgext_%s" % x[0].replace('.', '_')
       
  3245                 mod = imp.load_source(module_name, x[1])
  3242             else:
  3246             else:
  3243                 def importh(name):
  3247                 def importh(name):
  3244                     mod = __import__(name)
  3248                     mod = __import__(name)
  3245                     components = name.split('.')
  3249                     components = name.split('.')
  3246                     for comp in components[1:]:
  3250                     for comp in components[1:]: