hgext/fix.py
changeset 42757 2d70b1118af2
parent 42756 ed0da6e0d6ee
child 42758 e9f503074044
--- a/hgext/fix.py	Mon Aug 12 16:39:39 2019 -0700
+++ b/hgext/fix.py	Tue Aug 13 14:20:48 2019 -0700
@@ -171,7 +171,7 @@
     'linerange': None,
     'pattern': None,
     'priority': 0,
-    'metadata': False,
+    'metadata': 'false',
     'skipclean': 'true',
 }
 
@@ -724,6 +724,7 @@
             setattr(fixers[name], pycompat.sysstr('_' + key),
                     attrs.get(key, default))
         fixers[name]._priority = int(fixers[name]._priority)
+        fixers[name]._metadata = stringutil.parsebool(fixers[name]._metadata)
         fixers[name]._skipclean = stringutil.parsebool(fixers[name]._skipclean)
         # Don't use a fixer if it has no pattern configured. It would be
         # dangerous to let it affect all files. It would be pointless to let it