comparison mercurial/ui.py @ 31588:37a0ad669051

plain: ignore [commands] config We only have commands.{update,rebase}.requiredest so far. We should clearly ignore those two if HGPLAIN is in effect, and it seems like we should ignore any future config that will be added in [commands] since that is about changing the behavior of commands. Thanks to Yuya for suggesting to centralize the code in ui.py. While at it, remove the unnecessary False values passed to ui.configbool() for the aforementioned config options.
author Martin von Zweigbergk <martinvonz@google.com>
date Tue, 21 Mar 2017 21:26:52 -0700
parents d0f95ecca2ad
children c5d924e5dfdb
comparison
equal deleted inserted replaced
31586:df82f375fa00 31588:37a0ad669051
282 'traceback', 'verbose'): 282 'traceback', 'verbose'):
283 if k in cfg['ui']: 283 if k in cfg['ui']:
284 del cfg['ui'][k] 284 del cfg['ui'][k]
285 for k, v in cfg.items('defaults'): 285 for k, v in cfg.items('defaults'):
286 del cfg['defaults'][k] 286 del cfg['defaults'][k]
287 for k, v in cfg.items('commands'):
288 del cfg['commands'][k]
287 # Don't remove aliases from the configuration if in the exceptionlist 289 # Don't remove aliases from the configuration if in the exceptionlist
288 if self.plain('alias'): 290 if self.plain('alias'):
289 for k, v in cfg.items('alias'): 291 for k, v in cfg.items('alias'):
290 del cfg['alias'][k] 292 del cfg['alias'][k]
291 if self.plain('revsetalias'): 293 if self.plain('revsetalias'):