# HG changeset patch # User Matt Mackall # Date 1435272100 18000 # Node ID 0fdf2c3040191bbc17ffd9037854df7fa0cd8b26 # Parent 399c8aafc9f954ef8997d1131d199235e79a5180 mq: tweak config reading to make check-config happy The not-really-a-bool handling here upsets the type checker. diff -r 399c8aafc9f9 -r 0fdf2c304019 hgext/mq.py --- a/hgext/mq.py Fri Jul 17 13:41:07 2015 -0500 +++ b/hgext/mq.py Thu Jun 25 17:41:40 2015 -0500 @@ -430,7 +430,9 @@ else: self.gitmode = 'no' except error.ConfigError: - self.gitmode = ui.config('mq', 'git', 'auto').lower() + # let's have check-config ignore the type mismatch + self.gitmode = ui.config(r'mq', 'git', 'auto').lower() + # deprecated config: mq.plain self.plainmode = ui.configbool('mq', 'plain', False) self.checkapplied = True