mercurial/ui.py
changeset 31683 00e569a2da97
parent 31682 07d62fa518a4
child 31685 d83e51654c8a
equal deleted inserted replaced
31682:07d62fa518a4 31683:00e569a2da97
   210     @classmethod
   210     @classmethod
   211     def load(cls):
   211     def load(cls):
   212         """Create a ui and load global and user configs"""
   212         """Create a ui and load global and user configs"""
   213         u = cls()
   213         u = cls()
   214         # we always trust global config files
   214         # we always trust global config files
   215         for f in rcutil.rccomponents():
   215         for t, f in rcutil.rccomponents():
   216             u.readconfig(f, trust=True)
   216             if t == 'path':
       
   217                 u.readconfig(f, trust=True)
       
   218             else:
       
   219                 raise error.ProgrammingError('unknown rctype: %s' % t)
   217         return u
   220         return u
   218 
   221 
   219     def copy(self):
   222     def copy(self):
   220         return self.__class__(self)
   223         return self.__class__(self)
   221 
   224