##// END OF EJS Templates
config: remove pycompat.bytestr() for defaultvalue...
Navaneeth Suresh -
r42933:049b2ac3 default
parent child Browse files
Show More
@@ -1872,7 +1872,7 b' def config(ui, repo, *values, **opts):'
1872 for section, name, value in ui.walkconfig(untrusted=untrusted):
1872 for section, name, value in ui.walkconfig(untrusted=untrusted):
1873 source = ui.configsource(section, name, untrusted)
1873 source = ui.configsource(section, name, untrusted)
1874 value = pycompat.bytestr(value)
1874 value = pycompat.bytestr(value)
1875 defaultvalue = pycompat.bytestr(ui.configdefault(section, name))
1875 defaultvalue = ui.configdefault(section, name)
1876 if fm.isplain():
1876 if fm.isplain():
1877 source = source or 'none'
1877 source = source or 'none'
1878 value = value.replace('\n', '\\n')
1878 value = value.replace('\n', '\\n')
@@ -70,7 +70,7 b' Test case sensitive configuration'
70 $ hg showconfig Section.KeY -Tjson
70 $ hg showconfig Section.KeY -Tjson
71 [
71 [
72 {
72 {
73 "defaultvalue": "None",
73 "defaultvalue": null,
74 "name": "Section.KeY",
74 "name": "Section.KeY",
75 "source": "*.hgrc:*", (glob)
75 "source": "*.hgrc:*", (glob)
76 "value": "Case Sensitive"
76 "value": "Case Sensitive"
@@ -103,7 +103,7 b' Test empty config source:'
103 $ hg config empty.source -Tjson
103 $ hg config empty.source -Tjson
104 [
104 [
105 {
105 {
106 "defaultvalue": "None",
106 "defaultvalue": null,
107 "name": "empty.source",
107 "name": "empty.source",
108 "source": "",
108 "source": "",
109 "value": "value"
109 "value": "value"
General Comments 0
You need to be logged in to leave comments. Login now