##// END OF EJS Templates
logging: make 'settings ui from db' look more like Mercurial ini file notation
Mads Kiilerich -
r3133:95b4242a beta
parent child Browse files
Show More
@@ -619,7 +619,7 b' class Repository(Base, BaseModel):'
619 hg_ui = ret
619 hg_ui = ret
620 for ui_ in hg_ui:
620 for ui_ in hg_ui:
621 if ui_.ui_active:
621 if ui_.ui_active:
622 log.debug('settings ui from db[%s]%s:%s', ui_.ui_section,
622 log.debug('settings ui from db: [%s] %s=%s', ui_.ui_section,
623 ui_.ui_key, ui_.ui_value)
623 ui_.ui_key, ui_.ui_value)
624 baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)
624 baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)
625
625
@@ -623,7 +623,7 b' class Repository(Base, BaseModel):'
623 hg_ui = ret
623 hg_ui = ret
624 for ui_ in hg_ui:
624 for ui_ in hg_ui:
625 if ui_.ui_active:
625 if ui_.ui_active:
626 log.debug('settings ui from db[%s]%s:%s', ui_.ui_section,
626 log.debug('settings ui from db: [%s] %s=%s', ui_.ui_section,
627 ui_.ui_key, ui_.ui_value)
627 ui_.ui_key, ui_.ui_value)
628 baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)
628 baseui.setconfig(ui_.ui_section, ui_.ui_key, ui_.ui_value)
629
629
@@ -309,7 +309,7 b" def make_ui(read_from='file', path=None,"
309 cfg.read(path)
309 cfg.read(path)
310 for section in ui_sections:
310 for section in ui_sections:
311 for k, v in cfg.items(section):
311 for k, v in cfg.items(section):
312 log.debug('settings ui from file[%s]%s:%s' % (section, k, v))
312 log.debug('settings ui from file: [%s] %s=%s' % (section, k, v))
313 baseui.setconfig(safe_str(section), safe_str(k), safe_str(v))
313 baseui.setconfig(safe_str(section), safe_str(k), safe_str(v))
314
314
315 elif read_from == 'db':
315 elif read_from == 'db':
@@ -321,7 +321,7 b" def make_ui(read_from='file', path=None,"
321 hg_ui = ret
321 hg_ui = ret
322 for ui_ in hg_ui:
322 for ui_ in hg_ui:
323 if ui_.ui_active:
323 if ui_.ui_active:
324 log.debug('settings ui from db[%s]%s:%s', ui_.ui_section,
324 log.debug('settings ui from db: [%s] %s=%s', ui_.ui_section,
325 ui_.ui_key, ui_.ui_value)
325 ui_.ui_key, ui_.ui_value)
326 baseui.setconfig(safe_str(ui_.ui_section), safe_str(ui_.ui_key),
326 baseui.setconfig(safe_str(ui_.ui_section), safe_str(ui_.ui_key),
327 safe_str(ui_.ui_value))
327 safe_str(ui_.ui_value))
General Comments 0
You need to be logged in to leave comments. Login now