comparison mercurial/ui.py @ 10567:992723445a29 stable

ui: ignore ui.logtemplate and ui.style when HGPLAIN is set HGPLAIN should suppress them because they change Mercurial's default output.
author Yuya Nishihara <yuya@tcha.org>
date Wed, 03 Mar 2010 00:12:05 +0900
parents 79dd96774187
children 32b213b9b22c
comparison
equal deleted inserted replaced
10566:70dea42c9406 10567:992723445a29
79 raise 79 raise
80 self.warn(_("Ignored: %s\n") % str(inst)) 80 self.warn(_("Ignored: %s\n") % str(inst))
81 81
82 if self.plain(): 82 if self.plain():
83 for k in ('debug', 'fallbackencoding', 'quiet', 'slash', 83 for k in ('debug', 'fallbackencoding', 'quiet', 'slash',
84 'logtemplate', 'style',
84 'traceback', 'verbose'): 85 'traceback', 'verbose'):
85 if k in cfg['ui']: 86 if k in cfg['ui']:
86 del cfg['ui'][k] 87 del cfg['ui'][k]
87 for k, v in cfg.items('alias'): 88 for k, v in cfg.items('alias'):
88 del cfg['alias'][k] 89 del cfg['alias'][k]