diff mercurial/ui.py @ 10506:42afde35e9f7 stable

ui: suppress aliases when HGPLAIN is set
author Brodie Rao <me+hg@dackz.net>
date Thu, 18 Feb 2010 16:50:49 -0500
parents 40dfd46d098f
children 79dd96774187
line wrap: on
line diff
--- 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]