Bug 899818 - Don't add quotes to values when writing Mercurial configs; r=Gijs

DONTBUILD (NPOTB)
This commit is contained in:
Gregory Szorc 2013-07-31 00:07:57 -07:00
Родитель 6a449045ab
Коммит 5c5c830a87
1 изменённых файлов: 5 добавлений и 1 удалений

Просмотреть файл

@ -17,8 +17,12 @@ class MercurialConfig(object):
def __init__(self, infile=None):
"""Create a new instance, optionally from an existing hgrc file."""
# write_empty_values is necessary to prevent built-in extensions (which
# have no value) from being dropped on write.
# list_values aren't needed by Mercurial and disabling them prevents
# quotes from being added.
self._c = ConfigObj(infile=infile, encoding='utf-8',
write_empty_values=True)
write_empty_values=True, list_values=False)
@property
def config(self):