mercurial/extensions.py
changeset 33327 68b7ceda99d7
parent 33132 c467d13334ee
child 33526 792d121f22ba
equal deleted inserted replaced
33326:67b42e64194d 33327:68b7ceda99d7
   492             if strip_init:
   492             if strip_init:
   493                 path = os.path.dirname(path)
   493                 path = os.path.dirname(path)
   494         if name in exts or name in _order or name == '__init__':
   494         if name in exts or name in _order or name == '__init__':
   495             continue
   495             continue
   496         exts[name] = path
   496         exts[name] = path
   497     exts.update(_disabledextensions)
   497     for name, path in _disabledextensions.iteritems():
       
   498         # If no path was provided for a disabled extension (e.g. "color=!"),
       
   499         # don't replace the path we already found by the scan above.
       
   500         if path:
       
   501             exts[name] = path
   498     return exts
   502     return exts
   499 
   503 
   500 def _moduledoc(file):
   504 def _moduledoc(file):
   501     '''return the top-level python documentation for the given file
   505     '''return the top-level python documentation for the given file
   502 
   506