Show More
@@ -111,10 +111,12 b' disable color.' | |||||
111 |
|
111 | |||
112 | import os |
|
112 | import os | |
113 |
|
113 | |||
114 | from mercurial import commands, dispatch, extensions, ui as uimod, util |
|
114 | from mercurial import cmdutil, commands, dispatch, extensions, ui as uimod, util | |
115 | from mercurial import templater, error |
|
115 | from mercurial import templater, error | |
116 | from mercurial.i18n import _ |
|
116 | from mercurial.i18n import _ | |
117 |
|
117 | |||
|
118 | cmdtable = {} | |||
|
119 | command = cmdutil.command(cmdtable) | |||
118 | testedwith = 'internal' |
|
120 | testedwith = 'internal' | |
119 |
|
121 | |||
120 | # start and stop parameters for effects |
|
122 | # start and stop parameters for effects | |
@@ -440,6 +442,7 b' def extsetup(ui):' | |||||
440 | _("when to colorize (boolean, always, auto, or never)"), |
|
442 | _("when to colorize (boolean, always, auto, or never)"), | |
441 | _('TYPE'))) |
|
443 | _('TYPE'))) | |
442 |
|
444 | |||
|
445 | @command('debugcolor', [], 'hg debugcolor') | |||
443 | def debugcolor(ui, repo, **opts): |
|
446 | def debugcolor(ui, repo, **opts): | |
444 | global _styles |
|
447 | global _styles | |
445 | _styles = {} |
|
448 | _styles = {} | |
@@ -579,8 +582,3 b' else:' | |||||
579 | finally: |
|
582 | finally: | |
580 | # Explicitly reset original attributes |
|
583 | # Explicitly reset original attributes | |
581 | _kernel32.SetConsoleTextAttribute(stdout, origattr) |
|
584 | _kernel32.SetConsoleTextAttribute(stdout, origattr) | |
582 |
|
||||
583 | cmdtable = { |
|
|||
584 | 'debugcolor': |
|
|||
585 | (debugcolor, [], ('hg debugcolor')) |
|
|||
586 | } |
|
General Comments 0
You need to be logged in to leave comments.
Login now