mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
mq: tweak config reading to make check-config happy
The not-really-a-bool handling here upsets the type checker.
This commit is contained in:
parent
e8ae5150ee
commit
06c4019bce
@ -430,7 +430,9 @@ class queue(object):
|
||||
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user