Mercurial > hg
comparison hgext/color.py @ 14989:9e9d4a762586 stable
color.py - clear _terminfo_params in win32 mode
author | Andrei Vermel <avermel@mail.ru> |
---|---|
date | Fri, 29 Jul 2011 15:36:27 +0400 |
parents | 9adce4b38ed1 |
children | 2f0a3977c939 |
comparison
equal
deleted
inserted
replaced
14988:e6730f9e13bc | 14989:9e9d4a762586 |
---|---|
178 realmode = 'win32' | 178 realmode = 'win32' |
179 else: | 179 else: |
180 realmode = 'ansi' | 180 realmode = 'ansi' |
181 | 181 |
182 if realmode == 'win32': | 182 if realmode == 'win32': |
183 _terminfo_params = {} | |
183 if not w32effects: | 184 if not w32effects: |
184 if mode == 'win32': | 185 if mode == 'win32': |
185 # only warn if color.mode is explicitly set to win32 | 186 # only warn if color.mode is explicitly set to win32 |
186 ui.warn(_('warning: failed to set color mode to %s\n') % mode) | 187 ui.warn(_('warning: failed to set color mode to %s\n') % mode) |
187 return None | 188 return None |