diff hgext/win32text.py @ 12837:c82056f2509f stable

win32text: give deprecation warning Users need to migrate to the EOL extension for various reasons. Instructions for disabling the warning will be added to the extension's wiki page.
author Steve Borho <steve@borho.org>
date Mon, 25 Oct 2010 11:29:32 -0500
parents 5f01fd602542
children 38caf405d010
line wrap: on
line diff
--- a/hgext/win32text.py	Mon Oct 25 13:07:27 2010 -0500
+++ b/hgext/win32text.py	Mon Oct 25 11:29:32 2010 -0500
@@ -164,3 +164,7 @@
     for name, fn in _filters.iteritems():
         repo.adddatafilter(name, fn)
 
+def extsetup(ui):
+    if ui.configbool('win32text', 'warn', True):
+        ui.warn(_("win32text is deprecated: "
+                  "http://mercurial.selenic.com/wiki/Win32TextExtension\n"))