equal
deleted
inserted
replaced
310 sections.sort() |
310 sections.sort() |
311 for section in sections: |
311 for section in sections: |
312 for name, value in self.configitems(section, untrusted): |
312 for name, value in self.configitems(section, untrusted): |
313 yield section, name, str(value).replace('\n', '\\n') |
313 yield section, name, str(value).replace('\n', '\\n') |
314 |
314 |
315 def hgignorefiles(self): |
|
316 result = [] |
|
317 for key, value in self.configitems("ui"): |
|
318 if key == 'ignore' or key.startswith('ignore.'): |
|
319 result.append(os.path.expanduser(value)) |
|
320 return result |
|
321 |
|
322 def username(self): |
315 def username(self): |
323 """Return default username to be used in commits. |
316 """Return default username to be used in commits. |
324 |
317 |
325 Searched in this order: $HGUSER, [ui] section of hgrcs, $EMAIL |
318 Searched in this order: $HGUSER, [ui] section of hgrcs, $EMAIL |
326 and stop searching if one of these is set. |
319 and stop searching if one of these is set. |