tests: test/silence win32text deprecation warning stable
authorMartin Geisler <mg@lazybytes.net>
Mon, 25 Oct 2010 23:55:43 +0200
branchstable
changeset 12843 8aeb6184b008
parent 12842 9905fb060ace
child 12844 a1b49b9a0328
tests: test/silence win32text deprecation warning
tests/test-record.t
tests/test-win32text.t
--- a/tests/test-record.t	Mon Oct 25 23:46:26 2010 +0200
+++ b/tests/test-record.t	Mon Oct 25 23:55:43 2010 +0200
@@ -900,6 +900,11 @@
   $ echo '[patch]' >> .hg/hgrc
   $ echo 'eol = crlf' >> .hg/hgrc
 
+Ignore win32text deprecation warning for now:
+
+  $ echo '[win32text]' >> .hg/hgrc
+  $ echo 'warn = no' >> .hg/hgrc
+
   $ echo d >> subdir/f1
   $ hg record -d '23 0' -mw1 <<EOF
   > y
--- a/tests/test-win32text.t	Mon Oct 25 23:46:26 2010 +0200
+++ b/tests/test-win32text.t	Mon Oct 25 23:55:43 2010 +0200
@@ -390,8 +390,20 @@
   ** = cleverdecode:
   [encode]
   ** = cleverencode:
-  $ echo
-  
+
+Trigger deprecation warning:
+
+  $ hg id
+  win32text is deprecated: http://mercurial.selenic.com/wiki/Win32TextExtension
+  b910084e3c98+ tip
+
+Disable warning:
+
+  $ echo '[win32text]' >> .hg/hgrc
+  $ echo 'warn = no' >> .hg/hgrc
+  $ hg id
+  b910084e3c98+ tip
+
   $ rm f3 f4.bat bin
   $ hg co -C 2>&1 | python -c 'import sys, os; sys.stdout.write(sys.stdin.read().replace(os.getcwd(), "...."))'
   WARNING: f4.bat already has CRLF line endings