Commit fec1026e authored by Bohdan Buz's avatar Bohdan Buz

Added decoding of fetched settings value for correct work with unicode values

parent b7d7ee35
......@@ -681,12 +681,13 @@ class HgRepository(Repository):
"""
Reads entry from configuration.
"""
print 'path', path
section, option = path.split('.', 1)
filename = os.path.join(self.path, '.hg', 'hgrc')
config = ConfigParser.RawConfigParser()
config.read(filename)
if config.has_option(section, option):
return config.get(section, option)
return config.get(section, option).decode('utf-8')
return None
def set_config(self, path, value):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment