[PATCH 2 of 3] highlight: use uisetup() instead of extsetup()
Yuya Nishihara
yuya at tcha.org
Mon Oct 12 22:59:43 UTC 2009
# HG changeset patch
# User Yuya Nishihara <yuya at tcha.org>
# Date 1255384744 -32400
# Node ID 3560b54e195280d339f9b6b78cf7b1d07196d1ad
# Parent a375344a9d886497f1032948cc7b41ea6af14bbe
highlight: use uisetup() instead of extsetup()
we are planning to make extsetup() deprecated.
this also fixes issue1824 without intention.
diff --git a/hgext/highlight/__init__.py b/hgext/highlight/__init__.py
--- a/hgext/highlight/__init__.py
+++ b/hgext/highlight/__init__.py
@@ -53,7 +53,7 @@ def generate_css(web, req, tmpl):
req.respond(common.HTTP_OK, 'text/css')
return ['/* pygments_style = %s */\n\n' % pg_style, fmter.get_style_defs('')]
-def extsetup():
+def uisetup(ui):
# monkeypatch in the new version
extensions.wrapfunction(webcommands, '_filerevision', filerevision_highlight)
extensions.wrapfunction(webcommands, 'annotate', annotate_highlight)
More information about the Mercurial-devel
mailing list