Show More
@@ -1175,6 +1175,7 b' def showconfig(ui, repo, *values, **opts' | |||||
1175 | if len(items) > 1 or items and sections: |
|
1175 | if len(items) > 1 or items and sections: | |
1176 | raise util.Abort(_('only one config item permitted')) |
|
1176 | raise util.Abort(_('only one config item permitted')) | |
1177 | for section, name, value in ui.walkconfig(untrusted=untrusted): |
|
1177 | for section, name, value in ui.walkconfig(untrusted=untrusted): | |
|
1178 | value = str(value).replace('\n', '\\n') | |||
1178 | sectname = section + '.' + name |
|
1179 | sectname = section + '.' + name | |
1179 | if values: |
|
1180 | if values: | |
1180 | for v in values: |
|
1181 | for v in values: |
@@ -273,7 +273,7 b' class ui(object):' | |||||
273 | cfg = self._data(untrusted) |
|
273 | cfg = self._data(untrusted) | |
274 | for section in cfg.sections(): |
|
274 | for section in cfg.sections(): | |
275 | for name, value in self.configitems(section, untrusted): |
|
275 | for name, value in self.configitems(section, untrusted): | |
276 |
yield section, name, |
|
276 | yield section, name, value | |
277 |
|
277 | |||
278 | def plain(self): |
|
278 | def plain(self): | |
279 | '''is plain mode active? |
|
279 | '''is plain mode active? |
General Comments 0
You need to be logged in to leave comments.
Login now