Mercurial > hg
changeset 43218:f4c1fd6addd5
fix: don't pass in default value when looking up config
The defaults are now registered correctly so we don't need to pass in
the default value when we look up a config value.
Differential Revision: https://phab.mercurial-scm.org/D7083
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sat, 12 Oct 2019 11:16:19 -0700 |
parents | 5cb3e6f4e069 |
children | 0101db49606f |
files | hgext/fix.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/fix.py Sat Oct 12 11:13:55 2019 -0700 +++ b/hgext/fix.py Sat Oct 12 11:16:19 2019 -0700 @@ -794,11 +794,11 @@ fixers = {} for name in fixernames(ui): fixers[name] = Fixer() - for key, default in FIXER_ATTRS.items(): + for key in FIXER_ATTRS: setattr( fixers[name], pycompat.sysstr(b'_' + key), - ui.config(b'fix', name + b':' + key, default), + ui.config(b'fix', name + b':' + key), ) fixers[name]._priority = int(fixers[name]._priority) fixers[name]._metadata = stringutil.parsebool(fixers[name]._metadata)