Patchwork D7083: fix: don't pass in default value when looking up config

login
register
mail settings
Submitter phabricator
Date Oct. 14, 2019, 5:10 p.m.
Message ID <9dde8574961b91a3308dd73118035e46@localhost.localdomain>
Download mbox | patch
Permalink /patch/42325/
State Not Applicable
Headers show

Comments

phabricator - Oct. 14, 2019, 5:10 p.m.
Closed by commit rHGf4c1fd6addd5: fix: don&#039;t pass in default value when looking up config (authored by martinvonz).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7083?vs=17128&id=17141

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7083/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7083

AFFECTED FILES
  hgext/fix.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/hgext/fix.py b/hgext/fix.py
--- a/hgext/fix.py
+++ b/hgext/fix.py
@@ -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)