Show More
@@ -7,22 +7,32 b' cd t' | |||
|
7 | 7 | hg unbundle $TESTDIR/legacy-encoding.hg |
|
8 | 8 | hg co |
|
9 | 9 | |
|
10 | printf "latin-1 e' encoded: \xe9" > latin-1 | |
|
11 | printf "utf-8 e' encoded: \xc3\xa9" > utf-8 | |
|
12 | printf "\xe9" > latin-1-tag | |
|
13 | ||
|
10 | 14 | echo % should fail with encoding error |
|
11 | 15 | echo "plain old ascii" > a |
|
12 | 16 | hg st |
|
13 |
HGENCODING=ascii hg ci - |
|
|
17 | HGENCODING=ascii hg ci -l latin-1 -d "0 0" | |
|
14 | 18 | |
|
15 | 19 | echo % these should work |
|
16 | 20 | echo "latin-1" > a |
|
17 |
HGENCODING=latin-1 hg ci - |
|
|
21 | HGENCODING=latin-1 hg ci -l latin-1 -d "0 0" | |
|
18 | 22 | echo "utf-8" > a |
|
19 |
HGENCODING=utf-8 hg ci - |
|
|
23 | HGENCODING=utf-8 hg ci -l utf-8 -d "0 0" | |
|
20 | 24 | |
|
21 |
HGENCODING=latin-1 hg tag -d "0 0" |
|
|
25 | HGENCODING=latin-1 hg tag -d "0 0" `cat latin-1-tag` | |
|
22 | 26 | |
|
27 | echo % ascii | |
|
23 | 28 | hg --encoding ascii log |
|
29 | echo % latin-1 | |
|
24 | 30 | hg --encoding latin-1 log |
|
31 | echo % utf-8 | |
|
25 | 32 | hg --encoding utf-8 log |
|
33 | echo % ascii | |
|
26 | 34 | HGENCODING=ascii hg tags |
|
35 | echo % latin-1 | |
|
27 | 36 | HGENCODING=latin-1 hg tags |
|
37 | echo % utf-8 | |
|
28 | 38 | HGENCODING=utf-8 hg tags |
@@ -6,22 +6,26 b' added 1 changesets with 1 changes to 1 f' | |||
|
6 | 6 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
7 | 7 | % should fail with encoding error |
|
8 | 8 | M a |
|
9 | abort: decoding near 'cii 0xe9: �': 'ascii' codec can't decode byte 0xe9 in position 12: ordinal not in range(128)! | |
|
9 | ? latin-1 | |
|
10 | ? latin-1-tag | |
|
11 | ? utf-8 | |
|
12 | abort: decoding near ' encoded: �': 'ascii' codec can't decode byte 0xe9 in position 20: ordinal not in range(128)! | |
|
10 | 13 | |
|
11 | 14 | transaction abort! |
|
12 | 15 | rollback completed |
|
13 | 16 | % these should work |
|
14 | changeset: 3:d6b63b86e629 | |
|
17 | % ascii | |
|
18 | changeset: 3:5edfc7acb541 | |
|
15 | 19 | tag: tip |
|
16 | 20 | user: test |
|
17 | 21 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
18 |
summary: Added tag ? for changeset |
|
|
22 | summary: Added tag ? for changeset 91878608adb3 | |
|
19 | 23 | |
|
20 |
changeset: 2: |
|
|
24 | changeset: 2:91878608adb3 | |
|
21 | 25 | tag: ? |
|
22 | 26 | user: test |
|
23 | 27 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
24 | summary: utf-8 e': ? | |
|
28 | summary: utf-8 e' encoded: ? | |
|
25 | 29 | |
|
26 | 30 | changeset: 1:6355cacf842e |
|
27 | 31 | user: test |
@@ -33,17 +37,18 b' user: test' | |||
|
33 | 37 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
34 | 38 | summary: latin-1 e': ? |
|
35 | 39 | |
|
36 | changeset: 3:d6b63b86e629 | |
|
40 | % latin-1 | |
|
41 | changeset: 3:5edfc7acb541 | |
|
37 | 42 | tag: tip |
|
38 | 43 | user: test |
|
39 | 44 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
40 |
summary: Added tag � for changeset |
|
|
45 | summary: Added tag � for changeset 91878608adb3 | |
|
41 | 46 | |
|
42 |
changeset: 2: |
|
|
47 | changeset: 2:91878608adb3 | |
|
43 | 48 | tag: � |
|
44 | 49 | user: test |
|
45 | 50 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
46 | summary: utf-8 e': � | |
|
51 | summary: utf-8 e' encoded: � | |
|
47 | 52 | |
|
48 | 53 | changeset: 1:6355cacf842e |
|
49 | 54 | user: test |
@@ -55,17 +60,18 b' user: test' | |||
|
55 | 60 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
56 | 61 | summary: latin-1 e': � |
|
57 | 62 | |
|
58 | changeset: 3:d6b63b86e629 | |
|
63 | % utf-8 | |
|
64 | changeset: 3:5edfc7acb541 | |
|
59 | 65 | tag: tip |
|
60 | 66 | user: test |
|
61 | 67 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
62 |
summary: Added tag é for changeset |
|
|
68 | summary: Added tag é for changeset 91878608adb3 | |
|
63 | 69 | |
|
64 |
changeset: 2: |
|
|
70 | changeset: 2:91878608adb3 | |
|
65 | 71 | tag: é |
|
66 | 72 | user: test |
|
67 | 73 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
68 | summary: utf-8 e': é | |
|
74 | summary: utf-8 e' encoded: é | |
|
69 | 75 | |
|
70 | 76 | changeset: 1:6355cacf842e |
|
71 | 77 | user: test |
@@ -77,9 +83,12 b' user: test' | |||
|
77 | 83 | date: Thu Jan 01 00:00:00 1970 +0000 |
|
78 | 84 | summary: latin-1 e': é |
|
79 | 85 | |
|
80 | tip 3:d6b63b86e629 | |
|
81 |
|
|
|
82 |
|
|
|
83 | � 2:20ea57f280ca | |
|
84 |
tip 3: |
|
|
85 |
|
|
|
86 | % ascii | |
|
87 | tip 3:5edfc7acb541 | |
|
88 | ? 2:91878608adb3 | |
|
89 | % latin-1 | |
|
90 | tip 3:5edfc7acb541 | |
|
91 | � 2:91878608adb3 | |
|
92 | % utf-8 | |
|
93 | tip 3:5edfc7acb541 | |
|
94 | é 2:91878608adb3 |
General Comments 0
You need to be logged in to leave comments.
Login now