Mercurial > hg
changeset 12843:8aeb6184b008 stable
tests: test/silence win32text deprecation warning
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Mon, 25 Oct 2010 23:55:43 +0200 |
parents | 9905fb060ace |
children | a1b49b9a0328 |
files | tests/test-record.t tests/test-win32text.t |
diffstat | 2 files changed, 19 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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