comparison mercurial/ui.py @ 31682:07d62fa518a4

rcutil: rename rcpath to rccomponents (API)
author Jun Wu <quark@fb.com>
date Sun, 26 Mar 2017 20:48:00 -0700
parents 0f8ba0bc1154
children 00e569a2da97
comparison
equal deleted inserted replaced
31681:294728f2a908 31682:07d62fa518a4
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.rcpath(): 215 for f in rcutil.rccomponents():
216 u.readconfig(f, trust=True) 216 u.readconfig(f, trust=True)
217 return u 217 return u
218 218
219 def copy(self): 219 def copy(self):
220 return self.__class__(self) 220 return self.__class__(self)