--- a/hgext/color.py Tue Feb 21 18:09:21 2017 +0100
+++ b/hgext/color.py Tue Feb 21 18:20:12 2017 +0100
@@ -175,9 +175,6 @@
cmdutil,
color,
commands,
- dispatch,
- extensions,
- ui as uimod,
)
cmdtable = {}
@@ -188,15 +185,6 @@
# leave the attribute unspecified.
testedwith = 'ships-with-hg-core'
-def uisetup(ui):
- def colorcmd(orig, ui_, opts, cmd, cmdfunc):
- mode = color._modesetup(ui_, opts['color'])
- uimod.ui._colormode = mode
- if mode and mode != 'debug':
- color.configstyles(ui_)
- return orig(ui_, opts, cmd, cmdfunc)
- extensions.wrapfunction(dispatch, '_runcommand', colorcmd)
-
def extsetup(ui):
# change default color config
for idx, entry in enumerate(commands.globalopts):