# HG changeset patch # User Brodie Rao # Date 1266529849 18000 # Node ID 42afde35e9f7ad2e169c44df87509cad13a39548 # Parent b3311e26f94f69eeb0e7df4fc3d7b743f3d86969 ui: suppress aliases when HGPLAIN is set diff -r b3311e26f94f -r 42afde35e9f7 mercurial/ui.py --- a/mercurial/ui.py Mon Feb 15 15:25:29 2010 -0500 +++ b/mercurial/ui.py Thu Feb 18 16:50:49 2010 -0500 @@ -84,6 +84,8 @@ 'verbose'): if k in cfg['ui']: del cfg['ui'][k] + for k, v in cfg.items('alias'): + del cfg['alias'][k] for k, v in cfg.items('defaults'): del cfg['defaults'][k] diff -r b3311e26f94f -r 42afde35e9f7 tests/test-hgrc --- a/tests/test-hgrc Mon Feb 15 15:25:29 2010 -0500 +++ b/tests/test-hgrc Thu Feb 18 16:50:49 2010 -0500 @@ -37,6 +37,8 @@ echo "verbose=true" >> $HGRCPATH echo "[defaults]" >> $HGRCPATH echo "identify=-n" >> $HGRCPATH +echo "[alias]" >> $HGRCPATH +echo "log=log -g" >> $HGRCPATH echo '% customized hgrc' hg showconfig | sed -e "s:$p:...:" diff -r b3311e26f94f -r 42afde35e9f7 tests/test-hgrc.out --- a/tests/test-hgrc.out Mon Feb 15 15:25:29 2010 -0500 +++ b/tests/test-hgrc.out Thu Feb 18 16:50:49 2010 -0500 @@ -11,6 +11,7 @@ foo.baz=bif cb hg: config error at $HGRCPATH:1: cannot include /no-such-file (No such file or directory) % customized hgrc +.../.hgrc:10: alias.log=log -g .../.hgrc:8: defaults.identify=-n .../.hgrc:2: ui.debug=true .../.hgrc:3: ui.fallbackencoding=ASCII