changeset 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 6137c5bba4d0
children 830be2c57626
files hgext/win32text.py
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
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"))