view tests/test-encoding.out @ 3783:4421cef5d3f0

Make quoting in test-encoding simpler
author Matt Mackall <mpm@selenic.com>
date Mon, 04 Dec 2006 14:32:02 -0600
parents d0a48313b0f6
children 3674ca805a5b
line wrap: on
line source

adding changesets
adding manifests
adding file changes
added 1 changesets with 1 changes to 1 files
(run 'hg update' to get a working copy)
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
% should fail with encoding error
M a
? latin-1
? latin-1-tag
? utf-8
abort: decoding near ' encoded: é': 'ascii' codec can't decode byte 0xe9 in position 20: ordinal not in range(128)!

transaction abort!
rollback completed
% these should work
% ascii
changeset:   3:5edfc7acb541
tag:         tip
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     Added tag ? for changeset 91878608adb3

changeset:   2:91878608adb3
tag:         ?
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     utf-8 e' encoded: ?

changeset:   1:6355cacf842e
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     latin-1 e' encoded: ?

changeset:   0:60aad1dd20a9
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     latin-1 e': ?

% latin-1
changeset:   3:5edfc7acb541
tag:         tip
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     Added tag é for changeset 91878608adb3

changeset:   2:91878608adb3
tag:         é
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     utf-8 e' encoded: é

changeset:   1:6355cacf842e
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     latin-1 e' encoded: é

changeset:   0:60aad1dd20a9
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     latin-1 e': é

% utf-8
changeset:   3:5edfc7acb541
tag:         tip
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     Added tag é for changeset 91878608adb3

changeset:   2:91878608adb3
tag:         é
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     utf-8 e' encoded: é

changeset:   1:6355cacf842e
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     latin-1 e' encoded: é

changeset:   0:60aad1dd20a9
user:        test
date:        Thu Jan 01 00:00:00 1970 +0000
summary:     latin-1 e': é

% ascii
tip                                3:5edfc7acb541
?                                  2:91878608adb3
% latin-1
tip                                3:5edfc7acb541
é                                  2:91878608adb3
% utf-8
tip                                3:5edfc7acb541
é                                  2:91878608adb3