# HG changeset patch # User Matti Hamalainen # Date 1467626180 -10800 # Node ID b237b96602addbba833496e46d4af65661feb16e # Parent 01c933dba12063eafd6b138a97086bbcb7e397eb We need to handle "debug" setting before other settings, so we need a special case for it before post-parsing and validating rest of the config. diff -r 01c933dba120 -r b237b96602ad multimerge.py --- a/multimerge.py Mon Jul 04 12:55:41 2016 +0300 +++ b/multimerge.py Mon Jul 04 12:56:20 2016 +0300 @@ -255,6 +255,11 @@ if not cfgparser.has_section(section): gcm_fatal("Invalid configuration, missing '{0}' section.".format(section)) + # Debug setting is a special case, we need to get it + # set before everything else, so do it here .. + if cfgparser.has_option(section, "debug"): + cfg.mset("debug", cfgparser.get(section, "debug")) + # Parse the settings and validate cfg.mread(cfgparser, section)