Mercurial > hg > mercurial-crew-with-dirclash
comparison mercurial/extensions.py @ 5131:3edd6fedc33a
Merge with crew-stable
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 09 Aug 2007 11:37:47 -0700 |
parents | af0995261f02 b3cc62268a91 |
children | 4f648e95caca |
comparison
equal
deleted
inserted
replaced
5129:ff461baa9c4e | 5131:3edd6fedc33a |
---|---|
28 shortname = name[6:] | 28 shortname = name[6:] |
29 else: | 29 else: |
30 shortname = name | 30 shortname = name |
31 if shortname in _extensions: | 31 if shortname in _extensions: |
32 return | 32 return |
33 _extensions[shortname] = None | |
33 if path: | 34 if path: |
34 # the module will be loaded in sys.modules | 35 # the module will be loaded in sys.modules |
35 # choose an unique name so that it doesn't | 36 # choose an unique name so that it doesn't |
36 # conflicts with other modules | 37 # conflicts with other modules |
37 module_name = "hgext_%s" % name.replace('.', '_') | 38 module_name = "hgext_%s" % name.replace('.', '_') |