# HG changeset patch # User Alexis S. L. Carvalho # Date 1171541708 7200 # Node ID 719488a98ebe9d5cc55766828d2a1b52fed32a5e # Parent 51e52db6b40d4d4f459d36e2aa3e92eae986c625 Fix hg showconfig traceback with values that aren't strings diff -r 51e52db6b40d -r 719488a98ebe mercurial/ui.py --- a/mercurial/ui.py Thu Feb 15 08:51:32 2007 -0200 +++ b/mercurial/ui.py Thu Feb 15 10:15:08 2007 -0200 @@ -309,7 +309,7 @@ sections.sort() for section in sections: for name, value in self.configitems(section, untrusted): - yield section, name, value.replace('\n', '\\n') + yield section, name, str(value).replace('\n', '\\n') def extensions(self): result = self.configitems("extensions") diff -r 51e52db6b40d -r 719488a98ebe tests/test-hook --- a/tests/test-hook Thu Feb 15 08:51:32 2007 -0200 +++ b/tests/test-hook Thu Feb 15 10:15:08 2007 -0200 @@ -203,4 +203,6 @@ echo >> foo hg ci --debug -m 'change foo' | sed -e 's/ at .*>/>/' +hg showconfig hooks | sed -e 's/ at .*>/>/' + exit 0 diff -r 51e52db6b40d -r 719488a98ebe tests/test-hook.out --- a/tests/test-hook.out Thu Feb 15 08:51:32 2007 -0200 +++ b/tests/test-hook.out Thu Feb 15 10:15:08 2007 -0200 @@ -142,3 +142,4 @@ foo calling hook commit.auto: Automatically installed hook +hooks.commit.auto=