Mercurial > hg-stable
comparison mercurial/ui.py @ 4085:719488a98ebe
Fix hg showconfig traceback with values that aren't strings
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 15 Feb 2007 10:15:08 -0200 |
parents | 1bd6868b0b11 |
children | 0a95d0e83b4c |
comparison
equal
deleted
inserted
replaced
4084:51e52db6b40d | 4085:719488a98ebe |
---|---|
307 cdata = self._get_cdata(untrusted) | 307 cdata = self._get_cdata(untrusted) |
308 sections = cdata.sections() | 308 sections = cdata.sections() |
309 sections.sort() | 309 sections.sort() |
310 for section in sections: | 310 for section in sections: |
311 for name, value in self.configitems(section, untrusted): | 311 for name, value in self.configitems(section, untrusted): |
312 yield section, name, value.replace('\n', '\\n') | 312 yield section, name, str(value).replace('\n', '\\n') |
313 | 313 |
314 def extensions(self): | 314 def extensions(self): |
315 result = self.configitems("extensions") | 315 result = self.configitems("extensions") |
316 for i, (key, value) in enumerate(result): | 316 for i, (key, value) in enumerate(result): |
317 if value: | 317 if value: |