27419e0c5cfe

Make the color functionality compatible with 1.3.1.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Sat, 06 Feb 2010 11:53:33 -0500
parents c5195b16e7e4
children 23930691ebe7
branches/tags (none)
files review/extension_ui.py

Changes

--- a/review/extension_ui.py	Sat Feb 06 11:36:36 2010 -0500
+++ b/review/extension_ui.py	Sat Feb 06 11:53:33 2010 -0500
@@ -251,10 +251,15 @@
     finally:
         ui.write = oldwrite
 
-def extsetup(ui):
+_ui = None
+def uisetup(ui):
+    global _ui
+    _ui = ui
+
+def extsetup():
     try:
         color = extensions.find('color')
-        color._setupcmd(ui, 'review', cmdtable, colorreview,
+        color._setupcmd(_ui, 'review', cmdtable, colorreview,
                        _review_effects)
         global render_effects
         render_effects = color.render_effects