Mercurial > public > mercurial-scm > hg-stable
diff tests/test-diff-color.t @ 12942:05fffd665170 stable
tests: use (esc) for all non-ASCII test output
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Mon, 08 Nov 2010 01:41:41 +0100 |
parents | 1ff3fc4b6a66 |
children | 1e497df514e2 |
line wrap: on
line diff
--- a/tests/test-diff-color.t Mon Nov 08 01:35:41 2010 +0100 +++ b/tests/test-diff-color.t Mon Nov 08 01:41:41 2010 +0100 @@ -32,15 +32,15 @@ default context $ hg diff --nodates --color=always - [0;1mdiff -r cf9f4ba66af2 a[0m - [0;31;1m--- a/a[0m - [0;32;1m+++ b/a[0m - [0;35m@@ -2,7 +2,7 @@[0m + \x1b[0;1mdiff -r cf9f4ba66af2 a\x1b[0m (esc) + \x1b[0;31;1m--- a/a\x1b[0m (esc) + \x1b[0;32;1m+++ b/a\x1b[0m (esc) + \x1b[0;35m@@ -2,7 +2,7 @@\x1b[0m (esc) c a a - [0;31m-b[0m - [0;32m+dd[0m + \x1b[0;31m-b\x1b[0m (esc) + \x1b[0;32m+dd\x1b[0m (esc) a a c @@ -48,21 +48,21 @@ --unified=2 $ hg diff --nodates -U 2 --color=always - [0;1mdiff -r cf9f4ba66af2 a[0m - [0;31;1m--- a/a[0m - [0;32;1m+++ b/a[0m - [0;35m@@ -3,5 +3,5 @@[0m + \x1b[0;1mdiff -r cf9f4ba66af2 a\x1b[0m (esc) + \x1b[0;31;1m--- a/a\x1b[0m (esc) + \x1b[0;32;1m+++ b/a\x1b[0m (esc) + \x1b[0;35m@@ -3,5 +3,5 @@\x1b[0m (esc) a a - [0;31m-b[0m - [0;32m+dd[0m + \x1b[0;31m-b\x1b[0m (esc) + \x1b[0;32m+dd\x1b[0m (esc) a a diffstat $ hg diff --stat --color=always - a | 2 [0;32m+[0m[0;31m-[0m + a | 2 \x1b[0;32m+\x1b[0m\x1b[0;31m-\x1b[0m (esc) 1 files changed, 1 insertions(+), 1 deletions(-) $ echo "record=" >> $HGRCPATH $ echo "[ui]" >> $HGRCPATH @@ -77,17 +77,17 @@ > y > y > EOF - [0;1mdiff --git a/a b/a[0m - [0;36;1mold mode 100644[0m - [0;36;1mnew mode 100755[0m + \x1b[0;1mdiff --git a/a b/a\x1b[0m (esc) + \x1b[0;36;1mold mode 100644\x1b[0m (esc) + \x1b[0;36;1mnew mode 100755\x1b[0m (esc) 1 hunks, 1 lines changed examine changes to 'a'? [Ynsfdaq?] - [0;35m@@ -2,7 +2,7 @@[0m + \x1b[0;35m@@ -2,7 +2,7 @@\x1b[0m (esc) c a a - [0;31m-b[0m - [0;32m+dd[0m + \x1b[0;31m-b\x1b[0m (esc) + \x1b[0;32m+dd\x1b[0m (esc) a a c @@ -105,17 +105,17 @@ > y > y > EOF - [0;1mdiff --git a/a b/a[0m - [0;36;1mold mode 100644[0m - [0;36;1mnew mode 100755[0m + \x1b[0;1mdiff --git a/a b/a\x1b[0m (esc) + \x1b[0;36;1mold mode 100644\x1b[0m (esc) + \x1b[0;36;1mnew mode 100755\x1b[0m (esc) 1 hunks, 1 lines changed examine changes to 'a'? [Ynsfdaq?] - [0;35m@@ -2,7 +2,7 @@[0m + \x1b[0;35m@@ -2,7 +2,7 @@\x1b[0m (esc) c a a - [0;31m-b[0m - [0;32m+dd[0m + \x1b[0;31m-b\x1b[0m (esc) + \x1b[0;32m+dd\x1b[0m (esc) a a c