##// END OF EJS Templates
Fix hg showconfig traceback with values that aren't strings
Alexis S. L. Carvalho -
r4085:719488a9 default
parent child Browse files
Show More
@@ -309,7 +309,7 b' class ui(object):'
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")
@@ -203,4 +203,6 b" hg ci -m 'add foo'"
203 echo >> foo
203 echo >> foo
204 hg ci --debug -m 'change foo' | sed -e 's/ at .*>/>/'
204 hg ci --debug -m 'change foo' | sed -e 's/ at .*>/>/'
205
205
206 hg showconfig hooks | sed -e 's/ at .*>/>/'
207
206 exit 0
208 exit 0
@@ -142,3 +142,4 b' Automatically installed hook'
142 foo
142 foo
143 calling hook commit.auto: <function autohook>
143 calling hook commit.auto: <function autohook>
144 Automatically installed hook
144 Automatically installed hook
145 hooks.commit.auto=<function autohook>
General Comments 0
You need to be logged in to leave comments. Login now