mercurial/extensions.py
changeset 5132 1fd3248b8aa4
parent 5130 b3cc62268a91
child 5133 4f648e95caca
equal deleted inserted replaced
5130:b3cc62268a91 5132:1fd3248b8aa4
    22         raise KeyError(name)
    22         raise KeyError(name)
    23 
    23 
    24 def load(ui, name, path):
    24 def load(ui, name, path):
    25     if name in _extensions:
    25     if name in _extensions:
    26         return
    26         return
    27     _extensions[shortname] = None
    27     _extensions[name] = None
    28     if path:
    28     if path:
    29         # the module will be loaded in sys.modules
    29         # the module will be loaded in sys.modules
    30         # choose an unique name so that it doesn't
    30         # choose an unique name so that it doesn't
    31         # conflicts with other modules
    31         # conflicts with other modules
    32         module_name = "hgext_%s" % name.replace('.', '_')
    32         module_name = "hgext_%s" % name.replace('.', '_')