equal
deleted
inserted
replaced
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)) |