win32text: give deprecation warning stable
authorSteve Borho <steve@borho.org>
Mon, 25 Oct 2010 11:29:32 -0500
branchstable
changeset 12837 c82056f2509f
parent 12836 6137c5bba4d0
child 12838 830be2c57626
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.
hgext/win32text.py
--- 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"))