mercurial/ui.py
changeset 4618 669e76b7df24
parent 4517 5371a213b0f4
child 4619 7c8f8b736365
equal deleted inserted replaced
4617:70352337934e 4618:669e76b7df24
   317         sections.sort()
   317         sections.sort()
   318         for section in sections:
   318         for section in sections:
   319             for name, value in self.configitems(section, untrusted):
   319             for name, value in self.configitems(section, untrusted):
   320                 yield section, name, str(value).replace('\n', '\\n')
   320                 yield section, name, str(value).replace('\n', '\\n')
   321 
   321 
   322     def extensions(self):
       
   323         result = self.configitems("extensions")
       
   324         for i, (key, value) in enumerate(result):
       
   325             if value:
       
   326                 result[i] = (key, os.path.expanduser(value))
       
   327         return result
       
   328 
       
   329     def hgignorefiles(self):
   322     def hgignorefiles(self):
   330         result = []
   323         result = []
   331         for key, value in self.configitems("ui"):
   324         for key, value in self.configitems("ui"):
   332             if key == 'ignore' or key.startswith('ignore.'):
   325             if key == 'ignore' or key.startswith('ignore.'):
   333                 result.append(os.path.expanduser(value))
   326                 result.append(os.path.expanduser(value))